Skip to content

Commit

Permalink
fix(server): prevent loading for unselected characters
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Mar 2, 2022
1 parent 4ba5203 commit e05e7f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ game 'gta5'

--[[ Resource Information ]]--
name 'ox_core'
version '0.0.1'
version '0.0.2'
description 'What have I done?'
license 'GPL-3.0-or-later'
author 'overextended'
Expand Down
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ end)
AddEventHandler('onServerResourceStart', function(resource)
if resource == 'ox_inventory' then
for _, obj in pairs(player.list) do
if obj.charid then
if not obj.characters then
obj:loadInventory()
end
end
elseif resource == 'npwd' then
for _, obj in pairs(player.list) do
if obj.charid then
if not obj.characters then
obj:loadPhone()
end
end
Expand Down

0 comments on commit e05e7f7

Please sign in to comment.