ManeXi Posted June 12, 2016 Share Posted June 12, 2016 (edited) I made a panel which opens when you hit a marker, the problem I've got is that if anyone hits it opens to everyone on the server. function ammuEnter() guiSetVisible(ammu.window[1], true) showCursor(true, false) toggleAllControls(false, false, true) toggleControl("fire", false) toggleControl("aim_weapon", false) end addEventHandler("onClientMarkerHit", resourceRoot, ammuEnter) Edited June 12, 2016 by Guest Link to comment
roaddog Posted June 12, 2016 Share Posted June 12, 2016 Common problem use the first parameter check if hit element is local player. Link to comment
Bean666 Posted June 12, 2016 Share Posted June 12, 2016 function ammuEnter() if (source == localPlayer) then guiSetVisible(ammu.window[1], true) showCursor(true, false) toggleAllControls(false, false, true) toggleControl("fire", false) toggleControl("aim_weapon", false) end addEventHandler("onClientMarkerHit", resourceRoot, ammuEnter) 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