SetHandlingVector
DocsSetHandlingVector(vehicle, class_, fieldName, value)Description
Sets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta.
Example: SetHandlingVector('AIRTUG', 'CHandlingData', 'vecCentreOfMassOffset', vector3(0.0, 0.0, -5.0))
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | char* | The vehicle class to set data for. |
class_ | char* | The handling class to set. Only "CHandlingData" is supported at this time. |
fieldName | char* | The field name to set. These match the keys in `handling.meta`. |
value | Vector3 | The Vector3 value to set. |
Quick Snippet: Get Coordinatesvalue
valueAdd this command to your client script to retrieve precise locations in-game.
-- Add this to your client.lua. Type /pos in-game to copy coords.
RegisterCommand('pos', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
local output = string.format("vector4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading)
print(output)
TriggerEvent('chat:addMessage', { args = { '^4[COORD]^0', output } })
end)Returns
voidThis native does not return a value.