zZerteXx Posted August 13, 2022 Share Posted August 13, 2022 Hello everyone! How can I change script from server-side to client-side? infoMarker = createMarker(2808.621094,-2430.112305,12.62857, "cylinder", 2.0, 255, 0, 0, 150) function MarkerHit(player) outputChatBox("Hello",player,255,0,0,true) end addEventHandler("onMarkerHit",infoMarker,MarkerHit) Link to comment
fxl Posted August 13, 2022 Share Posted August 13, 2022 (edited) infoMarker = createMarker(2808.621094,-2430.112305,12.62857, "cylinder", 2.0, 255, 0, 0, 150) function MarkerHit(player) outputChatBox("Hello",255,0,0,true) end addEventHandler("onMarkerHit",infoMarker,MarkerHit) Also you have to change script type in meta.xml Edited August 13, 2022 by fxl Link to comment
mafioz Posted August 13, 2022 Share Posted August 13, 2022 Use event - onClientMarkerHit 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