Jump to content

createWeapon error


Tunner

Recommended Posts

So I use this script and I got error: attempt to call global "createWeapon" (a nil value). Changing "weapon =" to "local weapon =" doesnt help, changing m4 to 21 doesnt help either. anyone got a clue?

function crtwpn() 
  
weapon = createWeapon ( M4, 25.5, 1523.0930908203, 12.705202865601 ) 
  
end 
addCommandHandler ( "weapon", crtwpn) 

THX

Link to comment

Thanks for the fast reply. It was clientside alright, but I didnt have the "M4" thing. So I changed it, but it sitll doesnt work. Ive got the latest nightly (the one MTA kept annyoing with when i ran it). In the console it says it is 1.3.0 r4550, so I guess ill need to update to make it work.

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