I have been contemplating the concept of this for a while, a GTA V roleplay framework that is based off of Garry’s Mod DarkRP, and a ULX inspired admin interface. Has anyone been working on this? I think it would be amazing to have it so we can have the Lua structure like the “jobs.lua”, where you can set spawn perimeters (weapons, spawn position, health armor, playermodel (especially if it had the MP Freemode models, with different jobs giving you specific clothing), and even something as basic as a job decreption.
EXAMPLE
TEAM_POLICE = DarkRP.createJob("Police Officer", {
color = Color(112, 0, 0, 255),
model = {"models/player/ft_firstresponder.mdl", "models/player/ft_firstresponder_b.mdl"}, **//model they spawn as**
description = [[]],
weapons = {"fine_list", "keys", "weapon_arc_atmcard", "weapon_stungun", "cw_ber_cz75", "arrest_stick", "stunstick", "unarrest_stick", "weapon_cuff_police", "door_ram"}**, // can easily be replaced by WEAPON_PISTOL, etc.**
command = "/police", **//what you can type in chat to become this, for ease of access**
max = 10,
salary = 8500, **//choose the specific pay for jobs**
admin = 0, **//whether or not it's admin only**
vote = false, **//whether or not it has an election process**
hasLicense = true, **// gun license**
-- CustomCheck
medic = false,
chief = false,
mayor = true,
hobo = false,
cook = false,
category = "Civil Protection",
PlayerSpawn = function(ply,formatting)
if CLIENT then return end
local skin = (math.random(0,12) == 0 and 0 or 1)
ply:SetSkin(skin)
ply:SetBodygroup(1,11)
ply:SetBodygroup(3,4)
ply:SetBodygroup(6,1)
ply:SetHealth(110)
end,
hasRadio = true, **// would also be amazing to have job radios, although, I see many issues with something like this in FiveM at the current moment**
type = "police", **//this is line that tells another addon what abilities to give this job**
})
Picture of an F4 menu (job menu) example (for those unfamiliar w/ DarkRP
//s3.scriptfodder.com/script_media/94b13a89f39d2dec9e3610b23b66941a.png