Fantanic Posted January 18, 2014 Share Posted January 18, 2014 Hello , Im trying to make a trucker job. i need help with creating a trailer + destroying the trailer I also need help with destroying the trailer. This is what i got already but it isnt working : function createTrailer ( player ) createVehicle ( 432, x, y, z ) -- create the trailer outputChatBox ( "You got Trailer", player ) end Note i only need to create a trailer (near me like i only have to drive 1metre or so) so i can attach it and a function to destroy the trailer Greetings , Jonas Link to comment
Castillo Posted January 18, 2014 Share Posted January 18, 2014 When are you executing "createTrailer"? Link to comment
Fantanic Posted January 18, 2014 Author Share Posted January 18, 2014 onMarkerHit After u start the trucking job ( clicked on gui and etc) Link to comment
Castillo Posted January 18, 2014 Share Posted January 18, 2014 Post your full script. Link to comment
Fantanic Posted January 18, 2014 Author Share Posted January 18, 2014 function startTrucking() trucking = true if guiGridListGetSelectedItem (truckGridlist) ~= -1 then local row = guiGridListGetSelectedItem(truckGridlist) money = guiGridListGetItemData(truckGridlist, row, 3) local theTable = guiGridListGetItemData(truckGridlist, row, 1) destroyMarkers() mark = createMarker(theTable[1], theTable[2], theTable[3], "checkpoint", 4, 230, 0, 0) createBlipAttachedTo(mark, 42) money = guiGridListGetItemData(truckGridlist, row, 4) if (guiGridListGetItemData(truckGridlist, row, 5)) then triggerServerEvent("wantedTrucker", getLocalPlayer(), getLocalPlayer()) end closeTruckGui() truck = getPedOccupiedVehicle(localPlayer) --setElementFrozen(getPedOccupiedVehicle(localPlayer), false) addEventHandler("onClientMarkerHit", mark, deliverLoad) triggerServerEvent("createTrailer", localPlayer, truck) end end Btw someone gived me this script , my friend paid for it but didnt received the server side Link to comment
Castillo Posted January 18, 2014 Share Posted January 18, 2014 That sounds like you or your friend stole the client side script and wants our help to rebuild the server side. Link to comment
Fantanic Posted January 18, 2014 Author Share Posted January 18, 2014 ah ok ty for informing me Link to comment
Forrest Posted January 18, 2014 Share Posted January 18, 2014 Sounds exactly like that, considering the fact that neither of your scripts line up, missing variables, trying to trigger an event but instead scripting a function. Support for stolen resources will not be found here. Link to comment
Fantanic Posted January 19, 2014 Author Share Posted January 19, 2014 I didnt know he bought a stolen script Link to comment
Recommended Posts