Jump to content

String Value


Narutimmy

Recommended Posts

Una ayuda? me tira error.. value string :S en el veh

local veh = {} 
local vehCol = {} 
local counterddd2 = 0 
  
function CrearCaja(thePlayer,veh) 
  
  
accountname = getAccountName(getPlayerAccount(thePlayer)) 
if isObjectInACLGroup("user." .. accountname, aclGetGroup("EVENTOTemporal")) then 
  
counterddd2 = counterddd2 + 1 
local x, y, z = getElementPosition(thePlayer) 
veh[counterddd2] = createVehicle(433, x + 5, y, z) 
vehCol[counterddd2] = createColSphere(x + 5, y, z, 4) 
myBlip[counterddd2] = createBlipAttachedTo (veh, 56 ) 
  
setBlipVisibleDistance(myBlip[counterddd2], 200) 
attachElements(vehCol[counterddd2], veh[counterddd2], 0, 0, 0) 
setElementData(vehCol[counterddd2], "parent", veh[counterddd2]) 
setElementData(veh[counterddd2], "parent", vehCol[counterddd2]) 
setElementData(vehCol[counterddd2], "vehicle", true) 
setElementData(vehCol[counterddd2], "MAX_Slots", 2000) 
local tires, engine, parts = getVehicleAddonInfos(getElementModel(veh[counterddd2])) 
  
  
setVehicleDamageProof(veh[counterddd2], true) 
triggerClientEvent ( "Alarma", root , veh[counterddd2],counterddd2 ) 
  
  
setTimer ( setVehicleDamageProof, 600000, 1 ,veh[counterddd2],false) 
setTimer ( EliminarCaja, 600000, 1 ) 
end 
end 
  
addCommandHandler("/EVENTOBarracks", CrearCaja) 

Link to comment
  • Recently Browsing   0 members

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