myMarker = createMarker(2484.9118652344,-1664.3916015625,13.34375, 'cylinder', 50, 255, 0, 0, 150)
-----
addEventHandler ( "onMarkerHit",myMarker,function ( hitEelement )
if getElementType(hitEelement) == "player" then -- سويت تحقق ان اللي لمس الماركر هو اللاعب
if isPedInVehicle(hitEelement) then return outputChatBox 'Error' end
local id = 30 -- ايدي السلاح
local ammo = 200 -- عدد الذخيرة
giveWeapon(hitEelement, id,ammo,true)
outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..ammo.." ammo",hitEelement,0,255,0,true)
playSoundFrontEnd(hitEelement, 20)
end
end)
#Server-Said