Untitled

By Cute Plover, 5 Years ago (2014-06-29 21:41:21), written in Lua, viewed 310 times.
URL https://paste.godclan.hu/view/znYuG314 Embed
Download Paste or View RawExpand paste to full width of browser
  1. function somefunc(player)
  2.         if (isElement(player)) then
  3.                 local attached = getAttachedElements ( player )
  4.  
  5.                 if ( attached ) then
  6.                         for k,element in ipairs(attached) do
  7.                                 if isElement(element) and getElementType ( element ) == "blip" then
  8.                                         -- do something with  element
  9.                                 end
  10.                         end
  11.                 end
  12.         end
  13. end

Reply to "Untitled"

Here you can reply to the paste above