inside = createMarker( -1883.283203125, 865.4765625, 35.171875,56.0,"arrow",4.0,0,255,255) -- Removed
local inhouse = createMarker( -1883.283203125, 865.4765625, 35.171875,56.0,"arrow",4.0,0,255,255) -- Moved to here.
function createmymarker()
local inhouse = createMarker( -1883.283203125, 865.4765625, 35.171875,56.0,"arrow",4.0,0,255,255) -- Moved from here.
setElementPosition(theplayer,-1883.283203125, 865.4765625, 35.171875)
setElementInterior(theplayer, 18)
end
addEventHandler("onMarkerHit", inhouse, createmymarker) -- Now is the inhouse variable available here and the warning shouldn't show up any more.
@SinaAmp
local inhouse = createMarker( -1883.283203125, 865.4765625, 35.171875,56.0,"arrow",4.0,0,255,255)
function createmymarker()
setElementPosition(theplayer,-1883.283203125, 865.4765625, 35.171875)
setElementInterior(theplayer, 18)
end
addEventHandler("onMarkerHit", inhouse, createmymarker)