哈德森
Gold Elite
revise:util.lua
data\resources\[essential]\essentialmode\server\util.lua
The code is as follows To modify the blue value at the position of about 11 lines to set the amount of money that the newcomer just registered to send
es_startingCash', '20000 cash
'es_startingBank', '0' bank
In [ es_extended/server/main.lua ] (lines 202 to 212):
data\resources\[essential]\essentialmode\server\util.lua
The code is as follows To modify the blue value at the position of about 11 lines to set the amount of money that the newcomer just registered to send
es_startingCash', '20000 cash
'es_startingBank', '0' bank
If the above method does not work you can try the following-- Licensed under: AGPLv3 --
-- GNU AFFERO GENERAL PUBLIC LICENSE --
-- Version 3, 19 November 2007 --
-- Global variables
Users = {}
commands = {}
settings = {}
settings.defaultSettings = {
['permissionDenied'] = GetConvar('es_permissionDenied', 'false'),
['startingCash'] = GetConvar('es_startingCash', '20000'),
['startingBank'] = GetConvar('es_startingBank', '0'),
['enableRankDecorators'] = GetConvar('es_enableRankDecorators', 'false'),
['moneyIcon'] = GetConvar('es_moneyIcon', '$'),
['nativeMoneySystem'] = GetConvar('es_nativeMoneySystem', '0'),
['commandDelimeter'] = GetConvar('es_commandDelimeter', '/'),
['enableLogging'] = GetConvar('es_enableLogging', 'false'),
['enableCustomData'] = GetConvar('es_enableCustomData', 'false'),
['defaultDatabase'] = GetConvar('es_defaultDatabase', '1'),
['disableCommandHandler'] = GetConvar('es_disableCommandHandler', 'false'),
['identifierUsed'] = GetConvar('es_identifierUsed', 'steam')
}
In [ es_extended/server/main.lua ] (lines 202 to 212):
if #missingAccounts > 0 then
for i=1, #missingAccounts, 1 do
if(Config.AccountLabels[missingAccounts] == 'bank') then
table.insert(xPlayer.accounts, {
name = missingAccounts,
money = 500, --这是你的起始金额
label = Config.AccountLabels[missingAccounts]
})
else
table.insert(xPlayer.accounts, {
name = missingAccounts,
money = 0,
label = Config.AccountLabels[missingAccounts]
})
end
end
xPlayer.createAccounts(missingAccounts)
end