Yurigarga Posted July 12, 2018 Share Posted July 12, 2018 what should I do ? 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
Galactix Posted July 12, 2018 Share Posted July 12, 2018 Change source to Drzika[source] 1 Link to comment
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