Bean666 Posted June 27, 2016 Share Posted June 27, 2016 hi why it doesn't work when i set another marker's dimension? local marker = createMarker(2216.41675, -1151.71008, 1025, "cylinder", 1.2, 0, 0, 255, 200) setElementDimension(marker, 1) setElementInterior(marker, 15) function gui( hitElement, matchingDimension ) if not matchingDimension then return end if isPedInVehicle(hitElement) then return; end if getElementType( hitElement ) == "player" then triggerClientEvent(hitElement, "stationGUI", hitElement) end end addEventHandler("onMarkerHit", root, gui) addEvent("stationGUI", true) function guishow(player) guiSetVisible(classWnd, true) showCursor(true) end addEventHandler("stationGUI",getRootElement(),guishow) Link to comment
Bean666 Posted June 27, 2016 Author Share Posted June 27, 2016 it also doesn't work if i remove the setElementDimension how? the onClientMarkerHit works.... Link to comment
Captain Cody Posted June 27, 2016 Share Posted June 27, 2016 Server onMarkerHit is screwed up for some reason. Link to comment
G-Stefan Posted July 2, 2016 Share Posted July 2, 2016 try addEventHandler("stationGUI",root,guishow) if not working try addEventHandler("stationGUI",resourceRoot,guishow) verify if ur script types are correct in meta(can give errors if not ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now