Hello! I have one question. Do someone know how to make npcs larm police? I have esx_phone and esx_policejob? But is there a way to make npcs make calls when there is for example a shooting?
There is no way to detect if there is a shooting though. So probably not. Unless you keep the default in-game wanted system in.
https://runtime.fivem.net/doc/reference.html#_0xA0D3D71EA1086C55
https://runtime.fivem.net/doc/reference.html#_0x7E9DFE24AC1E58EF
https://runtime.fivem.net/doc/reference.html#_0x34616828CD07F1A1
Yes but if anyone shoots it would send a message.
Well you can verify if the ped is a player or not.
if not IsPedAPlayer(ped) then
-- do something
end
But then if any cop shoots, if anyone shoots legally…
You can always check if is a cop