๐ ๏ธInstallation
Welcome to our installation guide! In this section, we'll walk you through the steps to effortlessly set up the Script S-Postal!
Postal System Installation
Follow this steps to install the script:
Download the Script from Keymaster
Drag the Script into your resources
Add this to you your server.cfg:
start S-Postal
If the SQL file doesn't insert automatically, insert the SQL file in your database by hand.
CREATE TABLE IF NOT EXISTS `SPostalData` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deliverys` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`earnings` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`index`) USING BTREE,
KEY `identifier` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
For ESX 1.1 and 1.2 insert this in <es_extended> > <server> > <functions.lua> under ESX.GetPlayers
function ESX.GetExtendedPlayers(key, val)
local xPlayers = {}
for k, v in pairs(ESX.Players) do
if key then
if (key == 'job' and v.job.name == val) or v[key] == val then
xPlayers[#xPlayers + 1] = v
end
else
xPlayers[#xPlayers + 1] = v
end
end
return xPlayers
end
Restart the Server and play S-Postal on your Server!
Thats All! Enjoy the Script on your Server!
Last updated