question about create vehicle
#1

1. is there a diffrence between using createvehicle in the callback OnGameModeInit and in the callback OnPlayerConnect
2. can they be respawned multiple times with the function SetVehicleToRespawn ?
Reply
#2

Quote:
Originally Posted by karolis11234
Посмотреть сообщение
1. is there a diffrence between using createvehicle in the callback OnGameModeInit and in the callback OnPlayerConnect
2. can they be respawned multiple times with the function SetVehicleToRespawn ?
OnGameModeInit will create a vehicle when the script is ran for the first time (or if it has been restarted).
OnPlayerConnect will create a vehicle everytime ANY PLAYER connects.

SetVehicleToRespawn can be used as many times as you like, just provide the vehicle ID to respawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)