Untitled

From Cute Plover, 10 Years ago, written in Lua, viewed 706 times. This paste will go to its last resting place in 1 Second.
URL https://paste.godclan.hu/view/znYuG314 Embed
Download Paste or View Raw
  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