since a few days I’m having the problem that when I’m trying to customize a vehicle, as soon as I paid for the customization my character/ped and my vehicle both get stuck/freeze on point.
I’m no longer able to move, get out of the car, open my inventory, the phone, etc. etc.
does this happen when you restart your server too, because a lot of time if you manual restart a resource it doesnt load the database stuff because thats connected to a mysql ready event that only gets called on server start
if IsControlJustReleased(0, 38) and not lsMenuIsShowed and isInLSMarker then
if (PlayerData.job and PlayerData.job.name == 'mechanic') or not Config.IsMechanicJobOnly then
lsMenuIsShowed = false
local vehicle = GetVehiclePedIsIn(playerPed, false)
FreezeEntityPosition(vehicle, false)
myCar = ESX.Game.GetVehicleProperties(vehicle)
ESX.UI.Menu.CloseAll()
GetAction({value = 'main'})
end
end
TurningIsMenuIsShowed from true to false unfreezes your ped.
Turning FreezeEntityPosition(vehicle, false) from true to false unfreezes your car.