WelCome Posted June 1, 2018 Posted June 1, 2018 Hi guys, i want create blip to object but i have little problem for i,v in pairs(getElementsByType("object")) do if v==1340 then local x,y,z = getElementPosition(v) createBlip(x,y,z,math.random(5,10)) end end
WorthlessCynomys Posted June 1, 2018 Posted June 1, 2018 V is the object element, not the model id. getElementModel(v) will get you what you want
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