[HELP] client lua inject weapon spawn all players

Hello everyone,

Unfortunately, I have seen several times that a modder connects to my server and gives everyone a gun.
Is it possible that a single injection of lua can solve this out of three lines?

for i,player in ipairs(GetActivePlayers()) do
	GiveWeaponToPed(GetPlayerPed(player), GetHashKey("WEAPON_GRENADE"), 1, false, false)
end

Unfortunately, since I’m using esx, after upgrading, I save the lodout and everyone saves all the weapons they get then.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.