Jump to content

HELP-ME Mark the base location with blip


AnnaBelle

Recommended Posts

Posted
addEventHandler("onResourceStart",getRootElement(),function(thePlayer)
	if(getElementData(thePlayer,"Group")== "Testing" )then
		blip = createBlip(100,20,0,31)
		setBlipVisibleDistance(blip,1000)
	end
end)

 

error getElementData

Posted

try it on client side , it worked for me

addEventHandler("onClientResourceStart",resourceRoot,
function()
	if(getElementData(localPlayer,"Group")== "Test" )then
		blip = createBlip(100,20,0,31)
		setBlipVisibleDistance(blip,1000)
	end
end)

 

Posted (edited)

On the leave command, just destroy the blip.

 

function leaveTestGroup ()
	-- your code
	-- ...
	
	if (blip) then
		destroyElement (blip)
		blip = nil
	end
end
addCommandHandler ("leave", leaveTestGroup)

 

Edited by MakroBox

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