SetModelHeadlightConfiguration
DocsSetModelHeadlightConfiguration(modelHash, ratePerSecond, headlightRotation, invertRotation)Description
This native is deprecated and does nothing!
Parameters
| Name | Type | Description |
|---|---|---|
modelHash | Hash | — |
ratePerSecond | float | — |
headlightRotation | float | — |
invertRotation | BOOL | — |
Quick Snippet: Load Model HashmodelHash
modelHashModels must be loaded before use. This snippet handles requesting and releasing properly.
-- Properly load a model before spawning/using it
local modelName = "prop_barrel_01a" -- change to your model
local modelHash = GetHashKey(modelName)
RequestModel(modelHash)
while not HasModelLoaded(modelHash) do
Wait(0)
end
print("Model loaded: " .. modelName .. " (" .. modelHash .. ")")
-- Release when done:
-- SetModelAsNoLongerNeeded(modelHash)Returns
voidThis native does not return a value.