PartyMTA Posted January 3, 2015 Share Posted January 3, 2015 Hello, i tried to make a little script to make a blip for every single marker in the world and attach it. But it doesn't make any blip. Can someone help me? function getMarker() for k,marker in ipairs(getElementsByType("marker")) do local r,g,b,a = getMarkerColor(marker) createBlipAttachedTo(marker,0,2,r,g,b,a,0,99999) end end addEventHandler("onClientResourceStart",getRootElement(),getMarker) Note: i never used the for loops. So sorry if this makes no sense Link to comment
Castillo Posted January 3, 2015 Share Posted January 3, 2015 Did you set the script as client side in the meta.xml? do you get any error in the debugscript? Link to comment
PartyMTA Posted January 3, 2015 Author Share Posted January 3, 2015 Oh, i thought i had to put it server-side, thanks Link to comment
Castillo Posted January 3, 2015 Share Posted January 3, 2015 "onClientResourceStart" is a client-side event, if you want to do it server side change it to "onResourceStart". 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