Turbe$Z Posted December 3, 2016 Share Posted December 3, 2016 function boom ( ) local pX, pY, pZ = getElementPosition ( source ) createExplosion ( pX, pY, pZ, 2 ) end addCommandHandler( "rob", boom, getLocalPlayer() ) bad argument @ 'addCommandHandler' [Expected bool at argument 3, got player] Link to comment
LoPollo Posted December 3, 2016 Share Posted December 3, 2016 (edited) https://wiki.multitheftauto.com/wiki/AddCommandHandler It's the restricted argument Also source does not exists Edited December 3, 2016 by LoPollo Link to comment
MR.S3D Posted December 3, 2016 Share Posted December 3, 2016 function boom ( ) local pX, pY, pZ = getElementPosition ( getLocalPlayer() ) createExplosion ( pX, pY, pZ, 2 ) end addCommandHandler( "rob", boom) 1 Link to comment
Turbe$Z Posted December 3, 2016 Author Share Posted December 3, 2016 36 minutes ago, MR.S3D said: function boom ( ) local pX, pY, pZ = getElementPosition ( getLocalPlayer() ) createExplosion ( pX, pY, pZ, 2 ) end addCommandHandler( "rob", boom) oh thanks :DD Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now