This commit is contained in:
guava
2016-12-15 13:40:07 +01:00
commit ee4dd89693
95 changed files with 7368 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
-- triggers an event when the local network player becomes active
AddEventHandler('sessionInitialized', function()
local playerId = GetPlayerId()
-- create a looping thread
CreateThread(function()
-- wait until the player becomes active
while not IsNetworkPlayerActive(playerId) do
Wait(0)
end
-- set some defaults
AllowGameToPauseForStreaming(true)
SetMaxWantedLevel(6)
SetWantedMultiplier(0.9999999)
SetCreateRandomCops(true)
SetDitchPoliceModels(false)
DisplayPlayerNames(true)
NetworkSetHealthReticuleOption(true)
-- trigger an event on both the local client and the server
TriggerEvent('playerActivated')
TriggerServerEvent('playerActivated')
end)
end)