Im a begginer scrpter, and i know that u guys will say this is all wrong... D:
It was suppost to appear a bmx on VEHICLE_POSITION coordinates e.e
Help me, if u can xDD
local VEHICLE_POSITION = { -3992.5, 390.79998779297, 3.5999999046326}
local MARKER_POSITION = { -3763.099609375, 475.19921875, 4.5}
function createTheMarker()
local x, y, z = unpack(MARKER_POSITION)
local marker1 = createMarker( x, y, z, "corona", 1, 0, 255, 0, 255)
end
addEventHandler("onResourcesStart",getRootElement(),createTheMarker)
function IfMarkerHit(hitplayer)
if hitplayer ~= source then return end
if source == marker1 then
local x1, y1, z1 = unpack(VEHICLE_POSITION)
local vehicle1 = createVehicle(481 , x1, y1, z1)
end
end
addEventHandler("onMarkerHit",getResourceRootElement(getThisResource()),IfMarkerHit)