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. Required Arguments for playSound: Required Arguments for playSound3D
  3. Actually, you have to use playSound3D, not playSound.
  4. Console says it couldn't parse meta.xml for the resource, recheck it.
  5. nn, ken aslna 3rab 3lech mana7kiwch m3ahom fel arab board? azla3
  6. Click somewhere out of the window, and then output.
  7. ti haka, 3ini t7ar9et e5er marra mel bold w el mixes mte3 arabs.
  8. w na77i el bold brass ommek, mech kima jma3et el arabs a7na
  9. brass ommek, chetfahemna? mana 9olnelek fard topic. skype: samerbelgacem
  10. Another problem, when I hit the marker I want it to trigger startJob() function, but nothing happens.
  11. 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.
  12. I didn't give the full code, the marker and blip shows up, but when I hit the marker nothing happens.
  13. Yes, setElementData, when it reachs certain level, it sets the elevator element data, then it will go to the next level and so on.
  14. Yeah, try using setElementData and getElementData..
  15. 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...