DarkRP - Customizable Weaponry 2.0 - Problem with inserting .giveAttachments code and turning them
0 replies, posted
Trying to insert code for ply get attachment on spawn (job).
This is what the whole job looks like.
[QUOTE]TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(255, 140, 0, 255),
model = "models/agent_47.mdl",
description = [[You are a hitman. People might ask for your help when they want someone to go away!
Nothing is free, be sure to discuss prices before accepting the mission details. Dont let anyone see you!]],
weapons = {"cw_g4p_glock17","weapon_fists"},
command = "Hitman",
category = "Citizens", "Donator",
max = 1,
salary = 110,
admin = 0,
vote = false,
hasLicense = false,
PlayerLoadout = function(ply) ply:SetAmmo(120, "9x19mm") end, // Ammo Spawned With
customCheck = function(ply) return ply:GetNWString("usergroup") == "donator" or ply:IsAdmin() end,
CustomCheckFailMsg = "You need to be a Donator to have this job!" -- Message users are shown
})[/QUOTE]
This is what i want to insert [QUOTE]CustomizableWeaponry.giveAttachments(ply, {"md_tundra9mm"})[/QUOTE]
I dont think the code is right. Just tells me there is a problem on line 75. That would be the "CustomizableWeaponry.giveAttachments(ply, {"md_tundra9mm"})" line.
Also. Anyone know how to disable getting all attachments on spawn? when ever i change the option in game it turns on again after restart. Its not saving.
This is my first real post. Hope its good enough. Little scared of the "you are getting banned message"
Thanks =)
Sorry, you need to Log In to post a reply to this thread.