Jump to content

Error setElementData


Recommended Posts

 

what should I do ?

Y6qkpE.png

 


local Veiculos = {507, 559,566,581,506,517,526} 
Drzika = {}

function CreateVehicle (source)
if getElementData (source, "Pegou", true) then outputChatBox ('#ccff33[BİLGİ] #0000ff30 #33ffffSaniye Sonra Yeniden Deneyin',source,255,255,255,true) return end
if isElement(Drzika[source]) then destroyElement (Drzika[source]) 
Drzika[source] = nil
end
local x,y,z = getElementPosition (source)
local Cars = Veiculos[math.random(#Veiculos)]
Drzika[source] = createVehicle (Cars,x,y,z)
warpPedIntoVehicle (source,Drzika[source])
setElementData (source, "Pegou",true)
setTimer (setElementData, 30000, 1, source, "Pegou", false)
end
addCommandHandler ("car", CreateVehicle)

 

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...