golanu21 Posted January 5, 2013 Posted January 5, 2013 function tren () veh = createVehicle(449, -2006.5, 125.69999694824, 28) ped = createPed(252, 0, 0, 0) warpPedIntoVehicle ( ped, veh ) setPedControlState ( ped, "accelerate", true) end addCommandHandler("caine", tren) ...Help pls... [17:06:11] ERROR: asrs\camera.lua:6: attempt to call global 'setPedControlState' (a nil value)
golanu21 Posted January 5, 2013 Author Posted January 5, 2013 what is the difference between server and client?
csiguusz Posted January 5, 2013 Posted January 5, 2013 Server-sided scripts are running on the server. Client-sided ones are downloaded when a player joins a server and they run on the player's computer. And there are only client or server sided functions.
sckatchof Posted January 5, 2013 Posted January 5, 2013 Learn more : https://wiki.multitheftauto.com/wiki/Scr ... troduction
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