Tarek1 Posted June 4, 2017 Share Posted June 4, 2017 attempt to call global "addEventHandler" line 6 ( nil value ) function marker () marker1 = createMarker(2485.00000, -1667.00000, 12.34375,"cylinder",3,210, 105, 30) end addEventHandler("onClientResourceStart", getRootElement(), marker) addEventhandler("onClientMarkerHit", marker1, function (hitElement) if ( source == marker1 ) and ( getElementType(hitElement) == "player" ) and ( getElementData(hitElement, 'Group') == 'Terrorists' ) then window = guiCreateWindow(467, 213, 475, 179, "Terrorists Job", false) guiWindowSetSizable(window, false) accept = guiCreateButton(9, 126, 139, 43, "Accept", false, window) close1 = guiCreateButton(321, 126, 139, 43, "Close", false, window) guiSetVisible(window,false) showCursor(true) outputChatBox("Welcome Terrorist", 255, 255, 255, true) end end) Link to comment
#STZ Posted June 4, 2017 Share Posted June 4, 2017 Spoiler local marker1 = createMarker(2485.00000, -1667.00000, 12.34375,"cylinder",3,210, 105, 30) function M(hitElement) if ( source == marker1 ) and ( getElementType(hitElement) == "player" ) and ( getElementData(hitElement, 'Group') == 'Terrorists' ) then window = guiCreateWindow(467, 213, 475, 179, "Terrorists Job", false) guiWindowSetSizable(window, false) accept = guiCreateButton(9, 126, 139, 43, "Accept", false, window) close1 = guiCreateButton(321, 126, 139, 43, "Close", false, window) guiSetVisible(window,false) showCursor(true) outputChatBox("Welcome Terrorist", 255, 255, 255, true) end end addEventHandler ( "onClientMarkerHit", getRootElement(), M ) Link to comment
Tarek1 Posted June 4, 2017 Author Share Posted June 4, 2017 4 minutes ago, #STZ said: Hide contents local marker1 = createMarker(2485.00000, -1667.00000, 12.34375,"cylinder",3,210, 105, 30) function M(hitElement) if ( source == marker1 ) and ( getElementType(hitElement) == "player" ) and ( getElementData(hitElement, 'Group') == 'Terrorists' ) then window = guiCreateWindow(467, 213, 475, 179, "Terrorists Job", false) guiWindowSetSizable(window, false) accept = guiCreateButton(9, 126, 139, 43, "Accept", false, window) close1 = guiCreateButton(321, 126, 139, 43, "Close", false, window) guiSetVisible(window,false) showCursor(true) outputChatBox("Welcome Terrorist", 255, 255, 255, true) end end addEventHandler ( "onClientMarkerHit", getRootElement(), M ) شكرا 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