Imposter Posted July 24, 2012 Share Posted July 24, 2012 this isnt working, im making a truck job, when the trailer attaches, it is supposed to trigger the event, but it isnt even outputting clientside addEvent( "createTrailer", true) function createTrailer() local localPlayer = getLocalPlayer ( ) local x,y,z = getElementPosition(localPlayer) trailer = createVehicle ( 435, x+1 ,y+1 ,z+1) end addEventHandler ( "createTrailer", getRootElement(), createTrailer ) function onAttach() outputChatBox("trailerattached") triggerServerEvent ( "givePoint", getLocalPlayer() ) end addEventHandler("onClientTrailerAttach", getRootElement(), onAttach) Link to comment
AMARANT Posted July 24, 2012 Share Posted July 24, 2012 Try to create a trailer server-side. Your trailer isn't synchronized. 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