You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been messing around with the ExtendedBuyableVehicles and noticed that if you do not assign a secondaryPrefab (which is used for the clipboard on the vanilla Company Cruiser) LLL will throw a NullReferenceException error (shown in the photo below)
The vehicle will still work regardless of this; what I assume is happening is that there's no safeguard in place to check if secondaryPrefab exists (during network registering?); (the item dropship for example does this - if (this.terminalScript.buyableVehicles[this.terminalScript.orderedVehicleFromTerminal].secondaryPrefab != null), so even if you don't include a secondaryPrefab it will still be able to deliver the vehicle)
The text was updated successfully, but these errors were encountered:
ScandalTheVandal
changed the title
[Issue,1.4.8] Vehicles
[Issue,1.4.8] ExtendedBuyableVehicle throws NullReferenceException if secondaryPrefab is left blank.
Feb 6, 2025
Uh oh!
There was an error while loading. Please reload this page.
I've been messing around with the ExtendedBuyableVehicles and noticed that if you do not assign a secondaryPrefab (which is used for the clipboard on the vanilla Company Cruiser) LLL will throw a
NullReferenceException
error (shown in the photo below)The vehicle will still work regardless of this; what I assume is happening is that there's no safeguard in place to check if secondaryPrefab exists (during network registering?); (the item dropship for example does this -
if (this.terminalScript.buyableVehicles[this.terminalScript.orderedVehicleFromTerminal].secondaryPrefab != null)
, so even if you don't include a secondaryPrefab it will still be able to deliver the vehicle)The text was updated successfully, but these errors were encountered: