ManeXi Posted June 12, 2016 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 Interested on a paid 3D modder? My Skype: awdsasda.sdasdaad
roaddog Posted June 12, 2016 Posted June 12, 2016 Common problem use the first parameter check if hit element is local player. You gone learn today. I work my ass off, but I still can't pay tho.
Bean666 Posted June 12, 2016 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) Aftermath
ManeXi Posted June 12, 2016 Author Posted June 12, 2016 Fixed, thanks. Interested on a paid 3D modder? My Skype: awdsasda.sdasdaad
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