Bean666 Posted June 27, 2016 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)
Bean666 Posted June 27, 2016 Author Posted June 27, 2016 it also doesn't work if i remove the setElementDimension how? the onClientMarkerHit works....
Captain Cody Posted June 27, 2016 Posted June 27, 2016 Server onMarkerHit is screwed up for some reason.
G-Stefan Posted July 2, 2016 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 )
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