Giter VIP home page Giter VIP logo

esx_realparking's Introduction

Hi there 👋

👦 I am a PHP programmer and GTAV mods creator from China.

  • 👨‍💻 I'm currently working on website development in PHP
  • 💻 I also code in Lua / Java / Go / Javascript / C# / Python
  • ❤ I love playing video games, such as GTAV and Minecraft, and I created some mods for it.
  • 💡  I share my ideas in my blog: lo-li.cn
  • 🚗 I share my game videos in my channel: Bilibili / Youtube
  • 💬 Chat with me on Discord / QQ 204034

Peace and Love.


我是 练习时长两年半 来自中国的 PHPer,擅长摸鱼,一个只玩 GTA5 的人,喜欢改装车,业余漂移车手。

目前在开发自己的游戏项目 ZERODREAM RACING,业余时间随缘接单,有 🐘 PHP 或者 🐌 FiveM 相关的活可以找我,价格好商量。

这里是我的 Github 主页,可以随便看看啦~

esx_realparking's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esx_realparking's Issues

MYSQL Syntax Error

Good Morning,

i have Problems with the Update Query but i dont know why.
I Try to Fix it but its not working.

Unbenannt

Mysql error

[ERROR] [MySQL] [esx_realparking] An error happens on MySQL for query "UPDATE owned_vehicles SET stored = 2 WHERE plate = 'VSO 089' AND owner = 'baf73e50654f885afc0aada9f0c9636ed7177346'": ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'stored = 2 WHERE plate = 'VSO 089' AND owner = 'baf73e50654f885afc0aada9f0c9636e' at line 1

How can i fix this?

Vehicles don't despawn, and spawn again

Ssometime (it's random) when i go in a parking, vehicles don't despawn but spawn again.
All cars are duplicated with that issue.
Here is a screenshot of the only error i have (in f8 console)
image

NPC cars disappear

Hi, since the last update of fxserver, i have a huge problem, the script make all npc car on the road disapear at far of me,
i have a lot of npc on my server, and it's look like post apo server now :(
Do you have any idea to save me please? i work to found something since two day, day and night.
If i stop realparking, all npc cars reappear instantly, but i dont want to run the serv without this wonderful script!
Thank by advance, i hope you've an idea, and thank you very much

storage

when I have a car parked in a publc parking I can take it out again from garage. Any fix to that?

Vehicle in the air

Hello,

I meet a problem on the script, when that have a vehicle parked that there are players nearby the vehicle for me is very well parked by cons for the players it flies in the air etc

make persistence vehicle compliant

I'm using the script ... to make a complete parking system more complete.
The problem is that why do you have to do in realparking that when you park the car you deactivate the persistence of the other script but I don't know how to do it.

Stop a vehicle from being persistent and allow it to be removed as normal. Does not delete the vehicle. Call this when a player puts away a vehicle. Also remember to call this on your admin delete vehicle commands.

  # client event
  TriggerEvent('persistent-vehicles/forget-vehicle', entity)

and when to take the car out of the parking lot:

To make a vehicle persistent, pass its entity to the event below in a client script. For example if you are using ESX you can put this in the call back of the ESX.Game.SpawnVehicle function.

  # client event
  TriggerEvent('persistent-vehicles/register-vehicle', entity)

Saving vehicle mods

Would u be able to add the function to save vehicle mods to the db

Thanks

Impound script

I'm looking for a impound script compatible with this parking becouse players can duplicate their cars on the actual impound script.

If somebody finds a compatible script pls write me

attempt to index a nil value (field '?')

There is something wrong with this.

function DeleteLocalVehicle(vehicle) for i = 1, #LocalVehicles do if type(vehicle.plate) ~= 'nil' and type(LocalVehicles[i].plate) ~= 'nil' then if vehicle.plate == LocalVehicles[i].plate then local tmpModel = GetEntityModel(veh) SetModelAsNoLongerNeeded(tmpModel) DeleteEntity(LocalVehicles[i].entity) table.remove(LocalVehicles, i) end end end end

The line that is causing that problem is: if type(vehicle.plate) ~= 'nil' and type(LocalVehicles[i].plate) ~= 'nil' then

This function is called on SpawnVehicle / SpawnVehicles, and this is when it gives me the error in the console.

Save Fuel

When you pull out a vehicle from the parking state, it randomly generates a fuel level. Is there a way to save the fuel?

Big drop fps

Hi mate,

I have big drop when i enter on your parking, do u have too ? My friend got too.

drop_fps_real_parking

ps : Config.UsingOldESX = false
ps2 : No error in cmd server / client

Cheerz

Index was out of range.

Index was out of range. must be no-negative and less than the size of the collection

Issues

  • It happens to me when I record the vehicle

  • it must be in server/main.lua when you call the function (ESX.RegisterServerCallback)

Script won't update

For some reason, even though we have changed the config file with prices, ESX version, etc. the script is not updated, meaning that for example it is looking for the wrong row in the users table constantly.

I have also tried rewriting the script so that both if cases in server/main.lua for the Old ESX lead to "first name, last name", however the script itself still doesn't update, as if we have made no changes to the files whatsoever.

Park motocycles?

Hello its not issue but..
Is there any way to park the motorcycles?

Impound duplicates car

Hello there, when i park car, then go to impound and duplicate a car. is it possible to prevent this?

VEHICLE LOCKS

AFTER GETTING THE CAR BACK THEN LEAVE THE CAR THE CAR REMAINS LOCKED

set more viewing distance

I would like the cars to appear from further away without having to enter the garage and do not erase the cars of the NPCs

Save vehicle damage

Whenever you park or unpark a vehicle, the vehicle is repaired. It should save the damage.

HELP timmer

Hi,
I'm working on a timmer that delete the vehicle if the fee is higer the 20k, but dont work u can help me this is my code

function Limit(source)
MySQL.Async.fetchAll("SELECT * FROM car_parking WHERE owner = @Identifier AND plate = @plate", {
['@Identifier'] = xPlayer.identifier,
['@plate'] = plate
}, function(rs)
if type(rs) == 'table' and #rs > 0 and rs[1] ~= nil then
local fee = math.floor(((os.time() - rs[1].time) / 86400) * Config.ParkingLocations[rs[1].parking].fee)
if fee >= 20000 then
MySQL.Async.execute('DELETE FROM car_parking WHERE plate = @plate AND owner = @Identifier', {
["@plate"] = plate,
["@Identifier"] = xPlayer.identifier})
MySQL.Async.execute('DELETE FROM owned_vehicles WHERE plate = @plate AND owner = @Identifier', {
["@plate"] = plate,
["@Identifier"] = xPlayer.identifier})
print(result)
end
end
end)
end

mysql error

after server restart

[ERROR] [MySQL] [esx_realparking] An error happens on MySQL for query "SELECT identifier, name FROM users": ER_BAD_FIELD_ERROR: Unknown column 'name' in 'field list'

[ERROR] [MySQL] [esx_realparking] An error happens on MySQL for query "UPDATE owned_vehicles SET stored = 0 WHERE plate = 'ORU 601' AND owner = '038ec16e2c249675dd3f610207558adcf833b577'": ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'stored = 0 WHERE plate = 'ORU 601' AND owner = '038ec16e2c249675dd3f610207558adc' at line 1

Syntax Error

So im getting a db error saying incorrect syntax both when saving car and retrieving where u have "set stored 0 or 2" in there sql statement its saying it needs to be an identifier
any ideas thanks

Great script BTW

[Potential Security Flaw] Cheat Engine Model Change

After a quick review, the resource looks to have a security flaw by design, it never checks the model in db before saving new vehicle prop data to the db.

This allows for an old exploit to be used, where you alter the model hash via cheat engine, this can ruin a server economy and is a cheaters dream, they can make quick money quite fast, exploiting that there is no security check in place.

Black screen only

The cars are there but when you want to take out the car its just change to a black screen

Motorcycle

Please add the possibility to park the motorcycles

Multiple parking areas close to eachother won't work

Hello!

Thanks for the great resource!

I noticed you can't change the head of the parking lot. So I thought it might work to add every spot in a parking lot, but it fails. For example, once I have created 10 small parking spaces next to each other, the resource will no longer load the vehicles properly.

It would be nice if you can change the heading or shape of the real parking or if it is possible to put several small parking spaces next to each other.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.