kasuganosoras / zerodream_parking

🚗 A car parking script for FiveM
https://forum.cfx.re/t/standalone-esx-zerodream-parking-parking-your-car-like-in-real-life/4986567
GNU General Public License v3.0
37 stars 11 forks source link

"Vehicle cannot be parked here" #5

Closed jayyy299 closed 1 year ago

jayyy299 commented 1 year ago

I'm parking my vehicle in a global location and it tells me it can't be parked there after I exit my car. Also the G doesn't work for the engine, I need to manually /engine.

Alfita2021 commented 1 year ago

Check if the vehicle class is allowed. You can check this in the config.lua, in: allowTypes

Alfita2021 commented 1 year ago

if you want to allow all types of vehicles, change: allowTypes = { 0, 1, 2, 2, 3, 4, 5 } to allowTypes = { -1 }

jayyy299 commented 1 year ago

That worked, but it doesn't save after a restart it returns to a parking lot if I park it elsewhere.

Alfita2021 commented 1 year ago

That worked, but it doesn't save after a restart it returns to a parking lot if I park it elsewhere.

What version are you using? standalone or ESX? Are you getting any errors?

jayyy299 commented 1 year ago

Standalone, there's no errors but I fixed it thanks for the help with the parking issue! I appreciate it.

The parking wouldn't save because the config had a missing bracket }