Narutimmy Posted September 16, 2015 Share Posted September 16, 2015 Una ayuda? me tira error.. value string 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
Sasu Posted September 16, 2015 Share Posted September 16, 2015 Elimina el segundo argumento 'veh' de la funcion(linea 5) puesto que no te sirve, y remplaza 'veh' por 'veh[counterddd2]' en la linea 15. Link to comment
Narutimmy Posted September 16, 2015 Author Share Posted September 16, 2015 Elimina el segundo argumento 'veh' de la funcion(linea 5) puesto que no te sirve, y remplaza 'veh' por 'veh[counterddd2]' en la linea 15. Gracias Arreglado. Link to comment
Recommended Posts