Hey, this is the best picture that can describe the thing that I’m searching for.
When player shooting he is getting in like combat mode, there is any way to disable this mode?
it should return by itself if u stand still and not be wanted by cops… if u want to force it u can try to clear ur tasks i think?!
I want to disable it from the server
so you mean to never get “in this kind of state”? like block it?
Yes block it globally
This “stance” is called action mode, you can disable it like so:
CreateThread(function()
while true do
local playerPed = PlayerPedId()
if IsPedUsingActionMode(playerPed) then
SetPedUsingActionMode(playerPed, false, -1, 0)
else
Wait(500)
end
Wait(0)
end
end)
There might be better ways than to loop it, but this runs at 0.0ms for me, so it shouldn’t be a practical issue.
Edit: As a note, the code above does also disable “stealth mode”, so you might consider using using SetPedUsingActionMode(playerPed, false, -1, 'DEFAULT_ACTION') instead, however, this will not block this stance after melee combat.
Hope this helps.
Looks good
Where does that go?
In a client script.
How do I activate ActionMode after shooting? I change the system a bit
and to activate it?
How do I enable it bro ?
wheres the client script located at ?
I’m a bit unsure of what you’re asking here. But to “activate” the code, you would need to put the code snippet in a client-side lua file in a resource.
In a resource of your choosing.
