TheBossasdasd Posted December 14, 2012 Posted December 14, 2012 function warpToLVStunt ( source, commandName ) setElementPosition ( source, 1432.017578125 , 1473.7392578125 , 10.8203125 ) addCommandHandler ( "lvstunt", warpToLVStunt ) end pls help me guys
iPrestege Posted December 14, 2012 Posted December 14, 2012 Client Side -- addCommandHandler ( "lvstunt", function () setElementPosition (localPlayer,1432.017578125,1473.7392578125,10.8203125) end )
myonlake Posted December 14, 2012 Posted December 14, 2012 @Mr.Pres[T]ege: Why client-side? Why not server-side? It is a lot better to use it server-side. @TheBossasdasd: Your command handler is inside the function, and it seems that you are not triggering the function from outside. Put the command handler outside the function to make it work.
iPrestege Posted December 14, 2012 Posted December 14, 2012 Server Side -- addCommandHandler ( "lvstunt", function () setElementPosition (source,1432.017578125,1473.7392578125,10.8203125) end )
Cadu12 Posted December 14, 2012 Posted December 14, 2012 function warpToLVStunt( source, commandName ) setElementPosition( source, 1432.017578125, 1473.7392578125, 10.8203125 ) end addCommandHandler( "lvstunt", warpToLVStunt )
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