Jump to content

csontih

Members
  • Posts

    8
  • Joined

  • Last visited

csontih's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. use a custom Lua table based job registry <- <- <- <- I want to use a custom Lua table based job registry.
  2. It's a container delivery job, i want the marker to spawn, when i start the job. function startJob() outputChatBox("You started the job!", 255, 255, 255) destroyElement(pickupMarker) pickupMarker = createMarker(pickupPos[1], pickupPos[2], pickupPos[3] - 3.7, "cylinder", 4, 255, 162, 0, 200) destroyElement(pickupBlip) pickupBlip = createBlip(pickupPos[1], pickupPos[2], pickupPos[3] - 3.7, 0, 2, 255, 162, 0) Roboto = dxCreateFont("Roboto.ttf", 12) addEventHandler("onClientRender", root, renderMarkerInfo) addEventHandler("onClientMarkerHit", root, markerHandler) How could i do that in SourceS?
  3. Now it's working, but puts me and the car in the middle of the nothing :,D And i want to do that the marker only shows when i'm in the job.
  4. - The code i posted is sourceC.lua - The function would be that: When i go into the blue marker, a vehicle spawns. (but when i go into the marker right now, nothing happens.. That is the problem)
  5. <meta> <script src="sourceC.lua" type="client" cache="false" /> <script src="sourceS.lua" type="server" /> <file src="Roboto.ttf" /> </meta> The debugscript 3 only shows INFO: Save peds
  6. function startJob() outputChatBox("Teszt Munka", 0, 255, 0) local vehMark = createMarker(1617.6962890625, 2368.6525878906, 10.8203125,"cylinder") function vehicleSpawner(hitElement,matchingDimension) if getElementType(hitElement) == "player" then if getPedOccupiedVehicle(hitElement) == false then local x,y,z = getElementPosition(hitElement) local veh = createVehicle(578, 255, 255, 255) warpPedIntoVehicle(hitElement,veh) end end end addEventHandler("onMarkerHit",vehMark,vehicleSpawner) When i go into the Marker, nothing happens, can someone help?
×
×
  • Create New...