Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Custom respects
- main = function()
- while true do
- Wait(0)
- Respect()
- end
- end
- -- STimeCycle:
- function F_AttendedClass()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- SetSkippedClass(false)
- PlayerSetPunishmentPoints(0)
- end
- function F_MissedClass()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- SetSkippedClass(true)
- StatAddToInt(166)
- end
- function F_AttendedCurfew()
- if not PedInConversation(gPlayer) and not MissionActive() then
- TextPrintString("You got home in time for curfew", 4)
- end
- end
- function F_MissedCurfew()
- if not PedInConversation(gPlayer) and not MissionActive() then
- TextPrint("TM_TIRED5", 4, 2)
- end
- end
- function F_StartClass()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- end
- function F_EndClass()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- end
- function F_StartMorning()
- F_UpdateTimeCycle()
- end
- function F_EndMorning()
- F_UpdateTimeCycle()
- end
- function F_StartLunch()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- F_UpdateTimeCycle()
- return
- end
- F_UpdateTimeCycle()
- end
- function F_EndLunch()
- F_UpdateTimeCycle()
- end
- function F_StartAfternoon()
- F_UpdateTimeCycle()
- end
- function F_EndAfternoon()
- F_UpdateTimeCycle()
- end
- function F_StartEvening()
- F_UpdateTimeCycle()
- end
- function F_EndEvening()
- F_UpdateTimeCycle()
- end
- function F_StartCurfew_SlightlyTired()
- F_UpdateTimeCycle()
- end
- function F_StartCurfew_Tired()
- F_UpdateTimeCycle()
- end
- function F_StartCurfew_MoreTired()
- F_UpdateTimeCycle()
- end
- function F_StartCurfew_TooTired()
- F_UpdateTimeCycle()
- end
- function F_EndCurfew_TooTired()
- F_UpdateTimeCycle()
- end
- function F_EndTired()
- F_UpdateTimeCycle()
- end
- function F_Nothing()
- end
- function F_ClassWarning()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- local l_23_0 = math.random(1, 2)
- end
- function F_UpdateTimeCycle()
- if not IsMissionCompleated("1_B") then
- local l_24_0 = GetCurrentDay(false)
- if l_24_0 < 0 or l_24_0 > 2 then
- SetCurrentDay(0)
- end
- end
- F_UpdateCurfew()
- end
- function F_UpdateCurfew()
- local l_25_0 = shared.gCurfewRules
- if not l_25_0 then
- l_25_0 = F_CurfewDefaultRules
- end
- l_25_0()
- end
- function F_CurfewDefaultRules()
- local l_26_0 = ClockGet()
- if l_26_0 >= 23 or l_26_0 < 7 then
- shared.gCurfew = false
- else
- shared.gCurfew = false
- end
- end
- Respect = function()
- -- 1. Simple command to change all faction's respect to the same attitude/respect
- for A = 0,12 do
- PedSetDefaultTypeToTypeAttitude(A,13,4)
- SetFactionRespect(A,100)
- end
- --[[2. Command for changing faction's respect that only you've selected
- to the same attitude]]
- local B = {1, 2, 4, 5} -- <== Faction that you selected
- for BB, b in ipairs(B) do
- PedSetDefaultTypeToTypeAttitude(b, 13, 4)
- SetFactionRespect(b, 100)
- end
- -- 3. Command to change faction's respect that you selected to whatever you want
- for C, ped in {PedFindInAreaXYZ(0, 0, 0, 99999)} do
- if PedGetFaction(ped) == 1 then
- PedSetDefaultTypeToTypeAttitude(ped, 13, 0)
- SetFactionRespect(ped,0)
- end
- if PedGetFaction(ped) == 5 then
- PedSetDefaultTypeToTypeAttitude(ped, 13, 0)
- SetFactionRespect(ped,0)
- end
- if PedGetFaction(ped) == 9 then
- PedSetDefaultTypeToTypeAttitude(ped, 13 ,0)
- end
- end
- --[[4. Another command to change faction's respect manually, 1 by 1.
- With this command, you can change all faction's respect to different attitude]]
- for D = 0,12 do
- if D == 0 then
- PedSetDefaultTypeToTypeAttitude(D,13,0)
- elseif D == 1 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- SetFactionRespect(D,100)
- elseif D == 2 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- SetFactionRespect(D,100)
- elseif D == 3 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- SetFactionRespect(D,100)
- elseif D == 4 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- SetFactionRespect(D,100)
- elseif D == 5 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- SetFactionRespect(Faction,100)
- elseif D == 6 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- elseif D == 7 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- elseif D == 8 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- elseif D == 9 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- elseif D == 10 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- elseif D == 11 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- SetFactionRespect(D,100)
- elseif D == 12 then
- PedSetDefaultTypeToTypeAttitude(D,13,4)
- end
- end
- end
Add Comment
Please, Sign In to add comment