Jump to content

how to set the specific player's blip invisible


Hiding

Recommended Posts

Hello, I know that in race resource there is a function called showBlipsAttachedTo(elem, bShow) from util_server.lua, and I was wondering how can I use it on client side like this?
So my main goal here is to set the specific player's blip to invisible

addEventHandler("setPlayerVisibility", root, function(player)
    local vehicle = getPedOccupiedVehicle(player)
    local cameraTarget = getCameraTarget()
	
    if vehicle then
        if cameraTarget == vehicle  then
	    ...
        else
	    exports.race:showBlipsAttachedTo(vehicle, false)
	end
    end
end)

 

Edited by Hiding
Link to comment
  • Hiding changed the title to how to set the specific player's blip invisible

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...