Enigma666 Posted May 2, 2014 Posted May 2, 2014 Hi so what i currently have is this. addEventHandler("onClientResourceStart", getResourceRootElement(), function() testPed = createPed(7, -2720.26, 498, 7.07) outputChatBox(tostring(isElementStreamedIn(testPed))) end ) Im trying to start on a nametag system but this is causing me problems. I need peds to be inserted into a table because my peds have nametags too. I just set up this test code, to test out things. [Yes, the ped is right next to me] Any ideas?
Moderators IIYAMA Posted May 2, 2014 Moderators Posted May 2, 2014 addEventHandler("onClientRender",root, function() local allPeds = getElementsByType("ped") for i=1,#allPeds do local ped = allPeds[i] if isElementStreamedIn(ped) then end end end) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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