Created
September 3, 2019 04:35
-
-
Save FacuM/8504189b86537afcca5adb33fbb2a8db to your computer and use it in GitHub Desktop.
Disable NPCs for GTA V's FiveM.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Citizen.CreateThread(function() | |
local player = PlayerPedId() | |
while true do | |
SetPedDensityMultiplierThisFrame(0.0) | |
SetScenarioPedDensityMultiplierThisFrame(0.0, 0.0) | |
SetPoliceIgnorePlayer(player, true) | |
SetDispatchCopsForPlayer(player, false) | |
Citizen.Wait(1) | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment