Jump to content

setVehicleIdleRespawnDelay doesn't work


HoLsTeN

Recommended Posts

Posted

hi all

the function setVehicleIdleRespawnDelay doesn't work

i added toggleVehicleRespawn

but nothing happened

also i downloaded already script in the community and i tested it but nothing happen

the server is 1.1

Posted

you can't get help without posting the code

we need to see if you're using the function correctly and that your parameters are valid

anyway, try debugging it yourself

add outputDebugString() after every step you make with tostring(boolean) to show if functions were executed or failed

Posted
v = createVehicle(500, 0, 0, 0) 
toggleVehicleRespawn(v, true) 
vx, vy, vz = getElementPosition(v) 
setVehicleRespawnPosition(v, vx, vy, vz) 
setVehicleIdleRespawnDelay(v, 5000) 

Posted

Tell us the errors which you got in debugscript 3.

v = createVehicle(500, 0, 0, 0) 
toggleVehicleRespawn(v, true) 
vx, vy, vz = getElementPosition(v) 
setVehicleRespawnPosition(v, vx, vy, vz) 
setVehicleIdleRespawnDelay(v, 5000) 
bindKey ("yourkey", "down", v) 

I dont have idea will that work ( not tested)

Posted

PS: It works, if there is no player in range of it, try

     v = createVehicle(500, 0, 0, 0) 
    setVehicleIdleRespawnDelay(v, 5000) 
    toggleVehicleRespawn(v, true) 

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