Jump to content

Small problem with setElementVisibleTo


MAB

Recommended Posts

all works except the setElementVisibleTo function. the player still can see the marker but it worked when i used triggerServerEvent

local changer = createMarker ( 217.48380, -98.56483, 1004.25781, "cylinder", 1.5, 0, 255, 0, 170 ) 
setElementInterior ( changer, 15 ) 
  
function trigger (hit) 
if isPedInVehicle(hit) then return end 
showCursor ( hit, true ) 
setPlayerHudComponentVisible ( hit, "all", false ) 
showChat ( hit, false ) 
triggerClientEvent ( hit, "show", hit ) 
setElementVisibleTo(source,hit,false) 
end 
addEventHandler( "onMarkerHit", changer, trigger ) 

Link to comment

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...