Jump to content

Baseplate

Members
  • Posts

    1,417
  • Joined

  • Last visited

Everything posted by Baseplate

  1. Tried doing that before, but same problem function startJob() local id = getElementModel(source) if (id == 403) or (id == 515) or (id == 514) then local x, y, z = unpackMarkers() jobMarker = createMarker(x, y, z, "cylinder", 4, 255, 255, 0, 255) jobBlip = createBlipAttachedTo(jobMarker, 41) triggerServerEvent("visibleTruck", getLocalPlayer(), jobMarker, jobBlip) end end addEventHandler("onClientVehicleEnter", root, startJob) addEvent("StartJobTrigger",true) addEventHandler("StartJobTrigger",root,startJob) addEventHandler("onClientMarkerHit", root, function(hitElement, matchingDimension) if (isPedInVehicle(hitElement)) and (source == jobMarker) then local vehicle = getPedOccupiedVehicle(hitElement) local car = getElementModel(vehicle) if (car == 403) or (car == 515) or (car == 514) then triggerServerEvent("payTrucker", localPlayer) theVehicle = vehicle if isElement(jobMarker) then destroyElement(jobMarker) end if isElement(jobBlip) then destroyElement(jobBlip) end triggerEvent("StartJobTrigger", localPlayer) end end end )
  2. Nice! keep it up and good luck
  3. 7atta lena 5altin 3lina, barraw a5tawna...
  4. Required Arguments for playSound: Required Arguments for playSound3D
  5. Actually, you have to use playSound3D, not playSound.
  6. Console says it couldn't parse meta.xml for the resource, recheck it.
  7. brabi barra nayek, 5alina saymin.
  8. nn, ken aslna 3rab 3lech mana7kiwch m3ahom fel arab board? azla3
  9. Click somewhere out of the window, and then output.
  10. lol, 5ir mel 3rab :3
  11. ti haka, 3ini t7ar9et e5er marra mel bold w el mixes mte3 arabs.
  12. ti el codes, na7ihom lol
  13. w na77i el bold brass ommek, mech kima jma3et el arabs a7na
  14. brass ommek, chetfahemna? mana 9olnelek fard topic. skype: samerbelgacem
  15. Another problem, when I hit the marker I want it to trigger startJob() function, but nothing happens.
  16. Baseplate

    Random player

    And you have a little mistake, as the event handler is attached to a function which doesn't exist. Change the givebonus with gibvebonus.
  17. Works fine, thanks
  18. I didn't give the full code, the marker and blip shows up, but when I hit the marker nothing happens.
  19. Yes, setElementData, when it reachs certain level, it sets the elevator element data, then it will go to the next level and so on.
  20. Yeah, try using setElementData and getElementData..
  21. bump
  22. Nothing happens...
  23. I want it to hit the vehicle while being in a veh which has an id from the ones specified in the script.
×
×
  • Create New...