Configuration
https://force.tebex.io/
Just some information before the configuration is that this resource isn't just mean't for aircrafts but can also be just for Bicycles, Cars and alot more.
Shared Config
Config = {
SelectedLocale = "en",
Helicopters = {
{
["label"] = "Conada",
["model"] = "conada",
["img"] = "https://cdn.discordapp.com/attachments/1083112303236485120/1143242241276653638/image.png",
["price"] = 50000000
},
{
["label"] = "Swift",
["model"] = "swift",
["img"] = "https://static.wikia.nocookie.net/gtawiki/images/d/d9/SwiftClassic-GTAV-FrontQuarter.png/revision/latest/scale-to-width-down/350?cb=20160117175814",
["price"] = 35000000
},
{
["label"] = "Swift Deluxe",
["model"] = "swift2",
["img"] = "https://static.wikia.nocookie.net/gtawiki/images/4/4d/SwiftDeluxe-GTAV-front.png/revision/latest/scale-to-width-down/350?cb=20160117170332",
["price"] = 40000000
},
{
["label"] = "Volatus Deluxe",
["model"] = "volatus",
["img"] = "https://static.wikia.nocookie.net/gtawiki/images/0/0e/Volatus-GTAO-front.png/revision/latest/scale-to-width-down/350?cb=20160609144955",
["price"] = 60000000
},
{
["label"] = "Frogger",
["model"] = "frogger",
["img"] = "https://static.wikia.nocookie.net/gtawiki/images/0/05/Frogger-GTAV-front.png/revision/latest/scale-to-width-down/350?cb=20230225180922",
["price"] = 25000000
},
{
["label"] = "Maverick",
["model"] = "maverick",
["img"] = "https://static.wikia.nocookie.net/gtawiki/images/2/2b/Maverick-GTAV-front.png/revision/latest/scale-to-width-down/350?cb=20160411164524",
["price"] = 20000000
},
{
["label"] = "Supervolito",
["model"] = "supervolito",
["img"] = "https://static.wikia.nocookie.net/gtawiki/images/4/4d/SuperVolito-GTAO-front.png/revision/latest/scale-to-width-down/350?cb=20151216173044",
["price"] = 30000000
}
},
Locations = {
vector3(-923.64660644531, -2965.4208984375, 19.845386505127)
},
StartGarage = "Airport",
GetPlate = function()
local res = ""
for i = 1, 3 do
res = res .. string.char(math.random(97, 122))
end
plate = ('%s%s%s'):format(string.upper(res),math.random(10,99),string.upper(string.char(math.random(97,122))))
return plate
end
};
So everything here is pretty self explanatory and everything means what the variable is named
Server Config
server_config = {
AddKey = function(source, plate)
local player = force_lib.GetPlayer(source)
player.addInventoryItem({
item = "carkey",
data = {
plate = plate,
model = plate
}
})
end,
}
In the server config it's just the addkey function for servers who dosen't have carkeys you can just return true on this function.
Last modified 2d ago