Skip to content

GetPlayerOpponents

Everyone the player is fighting right now.

GetPlayerOpponents(pid)
Parameter Type
pid number the player

table - a list of pids, {} at peace

for _, other in ipairs(GetPlayerOpponents(pid)) do EndFight(pid, other) end -- what /peace does

AreFighting · EndFight · the Combat group of the index