Jump to content

Invisible marker in interior


Recommended Posts

Hello! I ran into a problem in which the marker in the interior is invisible, but it works properly. Everything worked fine, but after I changed the screen resolution (to test adaptation to screens), the marker was no longer visible. Does anyone know how this can be fixed?

Here is the part of the code where I create the marker(Client):

for i,v in ipairs(foods) do
	local marker = createMarker(v[1],v[2],v[3]+0.8,'arrow',1.5,255,255,0)
	local markerInterior = createMarker(v[8],v[9],v[10]+0.8,'arrow',1.5,255,255,0)
	setElementData(marker,'ID',i)
	setElementData(marker,'Interior','outside')
	setElementInterior(markerInterior,v[4])
	setElementData(markerInterior,'ID',i)
	setElementData(markerInterior,'Interior','interior')
	local markerFood = createMarker(v[16],v[17],v[18]-1,'cylinder',1,255,0,40,100)
	setElementInterior(markerFood,v[4])
	setElementData(markerFood,'type',v[19])
end

Shared:
 

foods = {
	{811.30029, -1616.21179, 13.5468,10,814.10345, -1616.45972, 13.54688,363.51627, -74.63560, 1001.5078,365.26227, -73.70920, 1001.50781,292.3,257.6,376.54950, -68.01637, 1001.5151,'burger'}
}


I create a marker in the interior of Burger Shot. Neither through v[4] nor through 10 does it work, even though setElementInterior() returns true.

Please help, who knows what to do with this.??

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