Javier Posted March 26, 2013 Posted March 26, 2013 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?
Castillo Posted March 26, 2013 Posted March 26, 2013 You aren't passing the "slothbot" argument anywhere.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now