I am looking for a way to take the friendly fire function on the server side, and toggle it on and off.
How would I go about doing this? Is it even possible?
I would be using this code from another thread:
CLIENT (only if ScriptHookV is allowed by the server)
PED::SET_CAN_ATTACK_FRIENDLY(PLAYER::PLAYER_PED_ID(), true, true);
local playerPed = GetPlayerPed(-1)
SetCanAttackFriendly(playerPed, true, true)
ALSO, how would I go about doing this in C#?
Any and all help, is appreciated.