MAB Posted August 3, 2015 Share Posted August 3, 2015 i am trying to draw dxText in the vehicle controller screen when the vehicle hit the marker .. but the vehicle and the marker is serverside... so.. i have to use triggerClientEvent.. but i couldn't understand it so i failed.. i need an example that draws a dxText when this vehicle hits the marker medic = createMarker ( -2682.36011, 637.64075, 13.45313, "cylinder", 1.5, 255, 255, 0, 170 ) amb = createVehicle ( 416, -2706.55298, 613.83698, 14.45313 ) Link to comment
GTX Posted August 3, 2015 Share Posted August 3, 2015 onMarkerHit if source == amb then triggerClientEvent(...) end Link to comment
MAB Posted August 3, 2015 Author Share Posted August 3, 2015 mmm. idk what arguments to put.. that is the problem.. not what u think Link to comment
GTX Posted August 3, 2015 Share Posted August 3, 2015 Wiki explains everything. bool triggerClientEvent ( [table/element sendTo=getRootElement()], string name, element sourceElement, [arguments...] ) Link to comment
Overkillz Posted August 3, 2015 Share Posted August 3, 2015 createMarker == -- Shared Function 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