gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
Fivem Scripting lua how do i enable gta 5 stock police and set a wanted level so the…
- User
Fivem Scripting lua how do i enable gta 5 stock police and set a wanted level so the police chase me
- Assistant
To enable GTA 5 stock police and set a wanted level so that the police will start chasing you, you can use this code in your FiveM Lua script:
-- Enable GTA 5 Stock Police Citizen.CreateThread(function() while true do EnableDispatchService(1, true) EnableDispatchService(2, true) EnableDispatchService(3, true) EnableDispatchService(4, true) EnableDispatchService(5, true) Wait(0) end end) -- Set Wanted Level Citizen.CreateThread(function() while true do SetPlayerWantedLevel(PlayerId(), 1, false) SetPlayerWantedLevelNow(PlayerId(), false) SetPlayerWantedLevelNoDrop(PlayerId(), 1, false) Wait(0) end end)This code will enable all five levels of police dispatch service, and set the wanted level to 1, which will cause the police to start chasing you. You can adjust the wanted level as desired, and customize the script further as needed.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.