autorun.photon.sh_photon_init
- SharedPhoton:AllVehicles() → tableSource ☍
-
Get the list of all photon enabled vehicles. Updates every .5 seconds.
Returns
- table
- SharedPhoton.AutoSkins.IsSkinAvailable(id, skin) → booleanSource ☍
-
Parameters
- idany
- skinany
Returns
- boolean
- SharedPhoton.RunQuarantined(ent, fn) → booleanSource ☍
-
Run an entity-processing callback, quarantining the entity if it errors. Errors inside timer callbacks permanently kill the timer and errors inside render hooks repeat every frame, so one vehicle with bad data must not be allowed to take a shared scan loop down with it. The offending entity is flagged and skipped on subsequent calls; the error itself is still reported with a full stack trace. xpcall is used rather than ProtectedCall because the latter benchmarks ~6.3x slower per dispatch (296ns vs 47ns) and this runs per-entity, per-frame.
Parameters
- entany
- fnany
Returns
- boolean
- SharedPhoton:UpdateVehicles()Source ☍
-
Update the stored vehicle table.
- SharedPhoton.AutoSkinsSource ☍
- SharedPhoton.AutoSkins.TranslationTableSource ☍
- SharedPhoton.LicensePlatesSource ☍
- SharedPhoton.NetSource ☍
- SharedPhoton.VehiclesSource ☍
- SharedPhoton.Vehicles.ConfigSource ☍
- SharedPhoton.Vehicles.MetaSource ☍
- SharedPhoton.Vehicles.PositionsSource ☍
- SharedPhoton.Vehicles.StateMaterialsSource ☍
- SharedPhoton.Vehicles.StatesSource ☍
- SharedPhoton.Vehicles.States.Blink_LeftSource ☍
- SharedPhoton.Vehicles.States.Blink_RightSource ☍
- SharedPhoton.Vehicles.States.BrakesSource ☍
- SharedPhoton.Vehicles.States.HeadlightsSource ☍
- SharedPhoton.Vehicles.States.ReverseSource ☍
- SharedPhoton.Vehicles.States.RunningSource ☍
- SharedPhoton.Vehicles.WheelOptionsSource ☍
- SharedPhoton.Vehicles.WheelPositionsSource ☍