Advertisement
Noneatme

Untitled

Nov 6th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. addEventHandler("onClientPreRender", getRootElement(), function()
  2.     for index, object in pairs(getElementsByType("object", getRootElement(), true)) do
  3.         -- FLIMMERVULKANE
  4.         if(flimmer_vulkan[object] == true) then
  5.             local x, y, z = getElementPosition(object)
  6.             z = z+0.8
  7.             fxAddSparks(x, y, z, 0, 0, 5, 2, 5, 0, 0, 0, false, 1, 5) -- THIS
  8.             if(getElementData(object, "flimmervulkan:last") == true) then
  9.                 fxAddSparks(x, y, z, 0, 0, 5, 2, 5, 0, 0, 0, false, 1, 5) -- AND THIS
  10.             end
  11.         end
  12.     end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement