Jump to content

[HELP]Lua.


JasperRieken

Recommended Posts

Posted

With the code below it will give the player who joined a M4 with 9999 bullets.

function giveWeaponsOnJoin() 
giveWeapon(source,31,9999,true) 
end 
addEventHandler("onPlayerJoin",getRootElement(),giveWeaponsOnJoin) 

  • Discord Moderators
Posted

rather put it on onPlayerSpawn because it might give him a weapon before he has spawned, and I don't know whether it works then.

so like > onPlayerJoin add event onPlayerSpawn and remove when triggered

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...