Im staerting a new server just to mess around with friends and i want to make cars to slightly faster. /
I have a bunch of cars in, so i downloaded the plugin “CarCommand” which baseicaly spawns the car i want.
Im building off this script and useing “SetVehicleEnginePowerMultiplier” to make the cars go faster, but the only problem is, the cars arent going any faster.
My code is below.
-- Shows a notification on the player's screen
function ShowNotification( text )
RegisterCommand('car', function(source, args, rawCommand)
local x,y,z = table.unpack(GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 8.0, 0.5))
local veh = args
if veh == nil then veh = "adder" end
vehiclehash = GetHashKey(veh)
local waiting = 0
while not HasModelLoaded(vehiclehash) do
waiting = waiting + 100
if waiting > 5000 then
ShowNotification("~r~Could not load the vehicle model in time, a crash was prevented.")
localnewCar= CreateVehicle(vehiclehash, x, y, z, GetEntityHeading(PlayerPedId())+90, 1, 0)
Please help with any suggestions, or if you can fix it, it would be amazing! Thanks.