onClientResourceStop doesn't fire reliably for a resource's own client scripts when it stops itself, so props never got cleaned up. The server now broadcasts safe:despawn (the same path already used for pickup) for every known safe on onResourceStop, right before the resource actually goes down. Bump to 1.1.6.
39 lines
653 B
Lua
39 lines
653 B
Lua
fx_version 'cerulean'
|
|
game 'gta5'
|
|
lua54 'yes'
|
|
|
|
author 'SeuNome'
|
|
description 'Sistema de safes com ox_inventory e ox_target'
|
|
version '1.1.6'
|
|
|
|
-- Dependências
|
|
dependencies {
|
|
'ox_inventory',
|
|
'ox_target',
|
|
'ox_lib',
|
|
'oxmysql'
|
|
}
|
|
|
|
-- Shared / Config
|
|
shared_script '@ox_lib/init.lua'
|
|
shared_script 'config.lua'
|
|
|
|
|
|
-- Scripts do servidor
|
|
server_scripts {
|
|
'@oxmysql/lib/MySQL.lua', -- garante que o oxmysql esteja carregado
|
|
'server.lua'
|
|
}
|
|
|
|
-- Scripts do cliente
|
|
client_scripts {
|
|
'client.lua'
|
|
}
|
|
|
|
-- Comandos do console / debug
|
|
escrow_ignore {
|
|
'config.lua',
|
|
'client.lua',
|
|
'server.lua'
|
|
}
|