Continuing the discussion from [DEV Tool] Driving style calculator:
Vehicle style calculator
NOTE: If you’re a server owner, you can skip this thread. This is meant for developers only.
This simple vehicle style calculator is very minimal, but it gets the job done. You can select any type of vehicle style to be on/off and you will instantly find the result below to use in your scripts.
Link
Vehicle Style Calculator
Vehicle Style Calculator Web Files on Github
Screenshot
Web inspired by Vespura.
Example
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
if IsAnyVehicleNearPoint(coords,15.0) then
local closestveh = GetClosestVehicle(coords, 15.0, 0, 231807) --cars
if closestveh == 0 then closestveh = GetClosestVehicle(coords, 15.0, 0, 391551) end --airs
if closestveh~=0 then print(closestveh) end
end
Conclusion: This native is worth trying to use.