Jump to content

pick up all equipped weapons


flowzera

Recommended Posts

You can do this with database, I would use the GetPedWeapon, takeAllWeapons and giveWeapon functions. You could use setElementData to manipulate the mta database below I leave you an example to remove all the weapons when doing the command. 

------server.lua-----

function tkw ( source )
takeAllWeapons ( source )
end    
addCommandHandler ( "takeweapon", tkw )
Edited by KnoxScripter
Link to comment

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...