itzsurajig / ef-phone

[FREE] EF-Phone For QBCore FrameWork
https://ef-development.tebex.io/
71 stars 19 forks source link

Blank Home screen issue for some players #1

Closed BPJ-Project closed 1 year ago

BPJ-Project commented 1 year ago

Phone working fine on my end, but when other players in serv open phone and press the fingerprint the phone then goes completely blank and see through ef-phone

BPJ-Project commented 1 year ago

Update error is....

[ script:qb-core] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:739: SCRIPT ERROR: @ef-phone/server/main.lua:199: attempt to index a nil value (global 'Garages') [ script:qb-core] > ref (@ef-phone/server/main.lua:199) [ script:qb-core] > (@oxmysql/dist/build.js:22252) [ script:qb-core] > processTicksAndRejections (node:internal/process/task_queues:96) [ script:qb-core] [ script:qb-core] > TriggerCallback (@qb-core/server/functions.lua:250) [ script:qb-core] > handler (@qb-core/server/events.lua:146) [ script:qb-core] > (@oxmysql/dist/build.js:22252) [ script:qb-core] > processTicksAndRejections (node:internal/process/task_queues:96)

BPJ-Project commented 1 year ago

Fixed Issue... code just had Garages insterad of Config.Garages

local garageresult = MySQL.Sync.fetchAll('SELECT * FROM player_vehicles WHERE citizenid = ?', {Player.PlayerData.citizenid}) if garageresult[1] ~= nil then for k, v in pairs(garageresult) do local vehicleModel = v.vehicle if (QBCore.Shared.Vehicles[vehicleModel] ~= nil) and (Config.Garages[v.garage] ~= nil) then v.garage = Config.Garages[v.garage].label v.vehicle = QBCore.Shared.Vehicles[vehicleModel].name v.brand = QBCore.Shared.Vehicles[vehicleModel].brand end

        end
        PhoneData.Garage = garageresult
    end
itzsurajig commented 1 year ago

those u have facing blank screen issue go and download again the latest version from tebex we update and fixed this error

Ackkz commented 1 year ago

Not Working for me aswell

itzsurajig commented 1 year ago

Phone working fine on my end, but when other players in serv open phone and press the fingerprint the phone then goes completely blank and see through ef-phone

make sure old sql was deleted and new sql install properly

itzsurajig commented 1 year ago

..

itzsurajig commented 1 year ago

..