- Youtube for videos
- This give you the real model name for a vehicle,
- sometimes a vehicle does not give you the correct spawn name,
- with this you get the correct spawn name.
- you can use this to save in to a database.
- make sure you start this resources before qc-core or esx
-- Use this if a spawnname does nog match with the one you want. -- with this you replace the name to the correct spawnname.
local model = exports['mh-vehiclemodels']:GetModelName(vehicle)
print(model)
- function
GetVehicleOffsetX
-- left/right - function
GetVehicleOffsetY
-- front/back - function
GetVehicleOffsetZ
-- up/down
local offsetX = exports['mh-vehiclemodels']:GetVehicleOffsetX(vehicle)
local offsetY = exports['mh-vehiclemodels']:GetVehicleOffsetY(vehicle)
local offsetZ = exports['mh-vehiclemodels']:GetVehicleOffsetZ(vehicle)
print(offsetX, offsetY, offsetZ)
local offsetX, offsetY, offsetZ = exports['mh-vehiclemodels']:GetVehicleOffset(vehicle)
print(offsetX, offsetY, offsetZ)