Jump to content

Expected


Javier

Recommended Posts

Hello guys. Check my script

function kill ( slothbot ) 
local x, y, z = getElementPosition( slothbot ) -- This is the line 
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) 

Problem

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

How i can fix this?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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