Jump to content

problema


Javier

Recommended Posts

Hola chicos, miren este script, me dice

BOSS\Jason.lua:22: Bad argument @ 'getElementPosition' [Expected element at argument 1, got nil] 

El script

function kill ( slothbot ) 
local x, y, z = getElementPosition( slothbot ) -- Este me dice que está mal.. 
local hora,minuto = getTime() 
if ( hora == 02 and minuto == 58 ) then 
createExplosion(x, y, z, 4) 
killPed( slothbot ) 
destroyElement( blip ) 
outputChatBox("NEMESIS HA SIDO DESTRUIDO", getRootElement(), 0, 255, 0) 
end 
end 
setTimer(kill, 2000, 0) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...