ertser17 Posted November 11, 2014 Share Posted November 11, 2014 Hello! I edited a basic script it adds objects to vehicle , but problem is that only i see the changes other players don't see them ,what may be the problem? local ccx,ccy,ccz,ccrx,ccry,ccrz= 0.5,-2,-0.3,0,0,0 local acx,acy,acz,acrx,acry,acrz= -0.5,-2,-0.3,0,0,0 function upgradeTheCar(cmd) local veh = getPedOccupiedVehicle ( localPlayer ) csmoke = createObject( 2780, 2,2,2) asmoke = createObject( 2780, 2,2,2) setElementCollisionsEnabled ( base, false ) attachElements ( csmoke, veh, ccx,ccy,ccz,ccrx,ccry,ccrz) attachElements ( asmoke, veh, acx,acy,acz,acrx,acry,acrz) end addCommandHandler("upgradeMyCar", upgradeTheCar) Link to comment
ertser17 Posted November 11, 2014 Author Share Posted November 11, 2014 Any help whit that , im curently just learning and i dont have any idea how to make it server side. Link to comment
TAPL Posted November 11, 2014 Share Posted November 11, 2014 At line 5 change localPlayer to cmd and in the meta put it server. Link to comment
ertser17 Posted November 11, 2014 Author Share Posted November 11, 2014 Thank you! It work's now. 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