Hey swag_k_dog, try my code and let me know
--CLIENT SIDE:
local missionMarker = createMarker(2153, -1799, 12.5, "cylinder", 1.1, 255, 0, 0, 100)
local FONT = guiCreateFont(":freeroam_login/images/gtasanandreas.ttf", 50)
function missionGui()
missionName = guiCreateLabel(0.64, 0.85, 0.38, 0.13, "sweet buisness", true)
guiSetFont(missionName, FONT)
guiLabelSetColor(missionName, 252, 226, 81)
end
function destroyGuis ( )
if isElement ( missionName ) then
destroyElement ( missionName )
end
end
addEventHandler ( "onClientMarkerHit", missionMarker,
function ( hitElement )
if ( isElement ( hitElement ) and hitElement == localPlayer ) then
triggerServerEvent ( "server->hitMarker", localPlayer, localPlayer )
end
end
)
addEventHandler ( "onClientMarkerLeave", missionMarker,
function ( hitElement )
if ( isElement ( hitElement ) and hitElement == localPlayer ) then
destroyGuis ( )
end
end
)
addEvent ( "client->hitMarker", true )
addEventHandler ( "client->hitMarker", localPlayer,
function ( )
missionGui ( )
fadeCamera ( false, 1.3 )
setTimer ( fadeCamera, 3000, 1, false, 1.3 )
setTimer ( guiSetVisible, 5500, 1, missionName, false )
end
)
--SERVER SIDE:
addEvent ( "server->hitMarker", true )
addEventHandler ( "server->hitMarker", root,
function ( player )
if ( not client ) then
return
-- for security reasons, this helps against rouge clients
end
if ( not player ) then
return
-- the same
end
triggerClientEvent ( client, "client->hitMarker", client )
end
)