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)
NETWORK::NETWORK_SET_FRIENDLY_FIRE_OPTION(true);
PED::SET_CAN_ATTACK_FRIENDLY(PLAYER::PLAYER_PED_ID(), true, true);
SERVER
local playerPed = GetPlayerPed(-1)
NetworkSetFriendlyFireOption(true)
SetCanAttackFriendly(playerPed, true, true)
ALSO, how would I go about doing this in C#?
Any and all help, is appreciated.