Jump to content

Error setElementData


Recommended Posts

Posted

 

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)

 

Posted

Change source to Drzika[source]

  • Like 1

If I helped you, make sure you click the reaction button on the right to support me!
It will grant me more visibility and will help me to help others!

If you have any kind of request or subject you would like to discuss about with me,
don't hesitate to send me a private message about it!

 

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