Domas Scripts
v1.0
Example
-- Location for the marker and blip
local markerLocation = vector3(-14.08474, -176.7364, 67.46682)
-- Create marker and blip
Citizen.CreateThread(function()
local marker = AddBlipForCoord(markerLocation.x, markerLocation.y, markerLocation.z)
SetBlipSprite(marker, 1) -- Blip sprite (1 is a standard blip)
SetBlipDisplay(marker, 4)
SetBlipScale(marker, 1.0)
SetBlipColour(marker, 3) -- Blip color (3 is yellow)
SetBlipAsShortRange(marker, true)
while true do
Citizen.Wait(0)
local playerPed = GetPlayerPed(-1)
local playerCoords = GetEntityCoords(playerPed)
-- Check if the player is near the marker
if Vdist(playerCoords.x, playerCoords.y, playerCoords.z, markerLocation.x, markerLocation.y, markerLocation.z) <
Last updated on
Was this page helpful?