SolosV1 / solos-rentals

Vehicle Rental Script for OX
15 stars 8 forks source link

Added blips for rental , add it at the bottom of client/client.lua (need to edit for every location) #2

Open NICK-a11y699 opened 4 days ago

NICK-a11y699 commented 4 days ago

local blip = nil

local x, y, z, h = config.locations['legion'].coords.x, config.locations['legion'].coords.y, config.locations['legion'].coords.z, config.locations['legion'].coords.h

Citizen.CreateThread(function() -- Wait for the game to load Citizen.Wait(500)

blip = AddBlipForCoord(x, y, z, h)

SetBlipSprite(blip, 227) 
SetBlipDisplay(blip, 4)
SetBlipScale(blip, 0.8) 
SetBlipColour(blip, 57) 
SetBlipAsShortRange(blip, false)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString("Rentals") 
EndTextCommandSetBlipName(blip)

end)