Welcome to the forum, Guest

To access forum content and all of our services, you must register or log in to the forum. Joining the forum and all content on the forum is completely free.

The world's largest FiveM Forum and GTA 5 Forum address

Hello dear member,
We work 24/7 to provide the most valuable content that will be of use to you,
you can share content and support the entire FiveM & GTA 5 mods.

Question Blips question - Hide Blips for other Players

Skaar2204

Member
Joined
Sep 7, 2021
Messages
3
Reaction score
1
Points
146
Location
Deutschland
I will hide 2 Blips for player with not this job...

-- blips shop --
local blips = {
-- Example {title="", colour=, id=, x=, y=, z=},

{title="Pizza pate", colour=59, id=103, x = 28.26, y = -1769.37, z = 28.49},
{title="Pizza ingredients", colour=59, id=103, x = 378.57, y = 327.33, z = 102.40}
}

Citizen.CreateThread(function()
if PlayerData.job.name == 'pizza'
for _, info in pairs(blips) do
info.blip = AddBlipForCoord(info.x, info.y, info.z)
SetBlipSprite(info.blip, info.id)
SetBlipDisplay(info.blip, 4)
SetBlipScale(info.blip, 1.0)
SetBlipColour(info.blip, info.colour)
SetBlipAsShortRange(info.blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(info.title)
EndTextCommandSetBlipName(info.blip)
end
end)

If I enter if PlayerData.job.name == 'pizza' the script no longer says that there is an error with jobs .. I'm testing a lot but I have no idea. Anyone have an idea? :) thanks
 

Login or register to get more out of the forum!

Login or register to get more out of the forum!

Register

Creating an account on the forum is completely free.

Register now
Log in

If you have an account, please login

Log in

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds