Fixed callback does not exist error#732
Fixed callback does not exist error#732LumaNodeStudios wants to merge 1 commit intoQbox-project:mainfrom
Conversation
|
Why is the guard clause not in the event handler? |
I'm not sure I see the benefit of registering the OnPlayerLoaded and removeVehZone event handlers if the persistence convar isn't set to full. Is there a specific reason they need to be registered even when they won't execute any logic? |
That makes sense. I had not fully analyzed the logic, yet. But now looking at it, you are right. The last two functions are unneeded, if the server is not in |
Description
This PR fixes the client error of the "qbx_core:server:getVehiclesToSpawn" callback not existing if the "qbx:vehiclePersistenceType" convar is not set to "full"
Checklist