So an issue im having that i cant seem to figure out is that my custom classes do not seem to work when adding the string to check for a steamID... any ideas as to why this doesnt work?
this is the code that i use to make my classes which should work but i believe it has something to do with something else that i cannot seem to discover.
TEAM_TEST = DarkRP.createJob("TEST", {
color = Color(120, 20, 200, 255),
model = {"models/player/scp096.mdl"},
description = [[Don't scare me!
Allowed to Raid!
Allowed to Kidnap!
Allowed to Base!]],
weapons = {"weapon_arc_atmcard", "itemstore_pickup", "m9k_usas", "m9k_scar", "spidermans_swep", "keypad_cracker", "pro_lockpick_update", "m9k_svu"},
command = "test",
max = 0,
salary = 175,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Custom",
customCheck = function(ply) return
table.HasValue({"STEAM_1:0:60815111"}, ply:SteamID())
end,
CustomCheckFailMsg = "You do not have access to this Custom Class!",
})
any ideas or thoughts are helpful.
DarkRP itself doesn't want you to create custom classes, and is therefore preventing you from doing it.
Don't copy+paste code. Just compare the player's SteamID to the one and only ID that can become the job.
And did I miss the part of the SCP lore where 096 had an automatic shotgun and a sniper rifle?
that is the problem im trying to fix is that it doesnt want me to be able to create these custom classes and the only way that seems to work is by creating a new user group through ULX with every class. that is the issue im trying to solve.
the steam ID that is currently in that code is also correct which continues to beg the question of why does this not want to work.
as for the SCP model that is just the chosen model for the player but the server is a standard darkrp server and not an SCP server
Sorry, you need to Log In to post a reply to this thread.