Jump to content

[HELP] onClientTrailerAttach doesnt work :/


Recommended Posts

this isnt working, im making a truck job, when the trailer attaches, it is supposed to trigger the event, but it isnt even outputting


addEvent( "createTrailer", true) 
function createTrailer() 
    local localPlayer = getLocalPlayer ( ) 
    local x,y,z = getElementPosition(localPlayer) 
    trailer =  createVehicle ( 435,  x+1 ,y+1 ,z+1) 
addEventHandler ( "createTrailer", getRootElement(), createTrailer ) 
function onAttach() 
    triggerServerEvent ( "givePoint", getLocalPlayer() ) 
addEventHandler("onClientTrailerAttach", getRootElement(), onAttach) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...