Resolved [ESX] Script Real Garage/Parking Recover Problem

Log in

or Log in using
If a link does not work anymore, please report it!

nizmogr

Jr Member I
Feb 13, 2021
3
5
3
Hello, there is problem with recover option with this script. I have es_extended v1.2 and when i try to recover a imported vehicle it does nothing and i get the error there is in the image, im sure it has to do with es_extended version, i have imported the .sql to my database. So is there any fix? Can we do anything about it? Cause its a very nice script and it will be a shame to not be able to use it!
Thank you very much
 

Attachments

  • Screenshot 2021-07-12 125731.jpg
    Screenshot 2021-07-12 125731.jpg
    26.3 KB · Views: 81
Last edited:

bushiwave

Jr Member I
Aug 7, 2021
3
0
1
Pseudo
bushiwave123
i have the same problem
 

bushiwave

Jr Member I
Aug 7, 2021
3
0
1
Pseudo
bushiwave123
Hello, there is problem with recover option with this script. I have es_extended v1.2 and when i try to recover a imported vehicle it does nothing and i get the error there is in the image, im sure it has to do with es_extended version, i have imported the .sql to my database. So is there any fix? Can we do anything about it? Cause its a very nice script and it will be a shame to not be able to use it!
Thank you very much
you fixed?
 

nizmogr

Jr Member I
Feb 13, 2021
3
5
3
you fixed?
Yes it was easy fix after all, for me the problem was at lines from 84 to 100 at esx_garage: server.lua
try to use this lines, hope it helps:

Code:
esx.RegisterServerCallback('erp_garage:checkMoney', function(source, cb)
    local sourceXPlayer = esx.GetPlayerFromId(source)
    local deudas = 0
    local result = MySQL.Sync.fetchAll('SELECT * FROM billing WHERE identifier = @identifier',{['@identifier'] = sourceXPlayer.identifier})
    for i=1, #result, 1 do
        amount     = result.amount
        deudas = deudas + amount
        if deudas >= 4000 then
            cb("deudas")
        end
    end
    if sourceXPlayer.getMoney() >= 2000 then
        cb(true)
    else
        cb(false)
    end
end)
 
Last edited by a moderator:
If a link does not work anymore, please report it!
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock