Okay ik ppl want money for lua scripting but i think here's some helpful people so if u want to help me then help me and if u dont want then you can stop reading already
So i have problem with my server the jobs says Jobs: and when i press f4 entities tab has nothing and the jobs tab either i get this error in my console:
Unknown command "durgz_witty_sayings"
Warning: Player issued command but is now vanished (Command was "")
Warning: Player issued command but is now vanished (Command was "")
Warning: Player issued command but is now vanished (Command was "")
Please help me i want play darkrp in my server with friends.
Helping is helpful and if you want help then help if you don't want help don't help.
Thanks.
Post the contents of shared.lua.
/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("Citizen", Color(152, 176, 200, 255), "models/player/group01/male_01.mdl", [[The Citizen is the most basic level
of society you can hold besides being a hobo.
You have no specific role in city life.]], {}, "citizen", 0, 45, 0, false, false)
TEAM_POLICE = AddExtraTeam("Civil Protection", Color(25, 25, 170, 255), "models/player/police.mdl", [[The protector of every citizen that lives in the city .
You have the power to arrest criminals and protect innocents.
Hit them with your arrest baton to put them in jail
Bash them with a stunstick and they might learn
better than to disobey the law.
The Battering Ram can break down the door of a criminal
with a warrant for his/her arrest.
The Battering Ram can also unfreeze frozen props.
Type /wanted <name> to alert the public to this criminal,
or go to tab and warrant someone by clicking the warrant button]], {"weapon_real_cs_p228", "arrest_stick", "unarrest_stick", "stunstick", "door_ram"}, "cp", 10, 100, 0, false, true)
TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 255), "models/player/group03/male_01.mdl", [[The lowest person of crime.
A gangster generally works for the Mobboss, who runs the crime family.
The Mobboss sets your agenda and you follow it or you might be punished.]], {}, "gangster", 10, 100, 0, false, false)
TEAM_MOB = AddExtraTeam("Mob Boss", Color(25, 25, 25, 255), "models/player/gman_high.mdl", [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters,
and forms an efficent crime organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]], {"lockpick", "unarrest_stick"}, "mobboss", 1, 125, 0, false, false)
TEAM_GUN = AddExtraTeam("Gun Dealer", Color(255, 140, 0, 255), "models/player/monk.mdl", [[A gun dealer is the only person
who can sell guns to other people.
However, make sure you aren't caught selling guns
that are illegal to the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]], {}, "gundealer", 3, 90, 0, false, false)
TEAM_MEDIC = AddExtraTeam("Doctor", Color(47, 79, 79, 255), "models/player/kleiner.mdl", [[With your medical knowledge,
you heal players to proper health.
Without a Doctor, people can not be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.
Doctors can also sell Aspirin to others.]], {"med_kit"}, "doctor", 3, 90, 0, false, false)
TEAM_COOK = AddExtraTeam("Cook", Color(238, 99, 99, 255), "models/player/mossman.mdl", [[As a cook, it is your responsibility
to feed the other members of your city.
You can spawn a microwave and sell the food you make.
/Buymicrowave to buy a microwave.]], {}, "cook", 3, 90, 0, 0, false)
TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", Color(20, 20, 255, 255), "models/player/Barney.mdl", [[The Chief is the leader of the Civil Protection unit.
Coordinate the police forces to bring law to the city.
Hit them with arrest baton to put them in jail.
Bash them with a stunstick and they might
learn better than to disobey the law.
The Battering Ram can break down the door of a
criminal with a warrant for his/her arrest.
Type /wanted <name> to alert the public onto this criminal
Type /jailpos to set the Jail Position]], {"weapon_real_cs_p228", "arrest_stick", "unarrest_stick", "stunstick", "door_ram"}, "chief", 1, 125, 0, false, true, {TEAM_POLICE, TEAM_FEMPOLICE})
TEAM_MAYOR = AddExtraTeam("Mayor", Color(150, 20, 20, 255), "models/player/breen.mdl", [[The Mayor of the city creates laws to
serve the greater good of the people.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown,
while the cops patrol the area.
/unlockdown to end a lockdown]], {"door_ram"}, "mayor", 1, 150, 0, true, false/*, {TEAM_CHIEF, TEAM_POLICE, TEAM_FEMPOLICE}*/)
/*
--------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
The default door groups, can also be used as examples:
*/
AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_ADMIN, TEAM_SWAT, TEAM_SHARPSHOOTER)
AddDoorGroup("gundealer only", TEAM_GUN)
/*
--------------------------------------------------------
HOW TO MAKE AN EXTRA CLASS!!!!
--------------------------------------------------------
You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you're doing!!!
Ok here's how:
To make an extra class do this:
AddExtraTeam( "<NAME OF THE CLASS>", Color(<red>, <Green>, <blue>, 255), "<Player model>" , [[<the description(it can have enters)>]], { "<first extra weapon>","<second extra weapon>", etc...}, "<chat command to become it(WITHOUT THE /!)>", <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team)
The real example is here: it's the Hobo: */
--VAR without /!!! The name the color(what you see in tab) the player model The description
TEAM_HOBO = AddExtraTeam("Hobo", Color(80, 45, 0, 255), "models/player/corpse1.mdl", [[The lowest member of society.
All people see you and laugh.
You have no home.
Beg for your food and money.
Sing for everyone who passes to get money.
Make your own wooden home somewhere in a corner or
outside someone else's door]], {"weapon_bugbait"}, "hobo", 2, 0, 0, false)
//No extra weapons say /hobo to become hobo Maximum hobo's = 5 his salary = 0 because hobo's don't earn money. 0 = everyone can become hobo , false = you don't have to vote to become hobo
// MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
// TEAM_/DUDE IS WROOOOOONG !!!!!!
// HAVING "/dude" IN THE COMMAND FIELD IS WROOOOOOOONG!!!!
//ADD TEAMS UNDER THIS LINE:
TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(128, 0, 255, 255), "models/player/group01/male_04.mdl" , [[As a Drug Dealer, you supply your fellow weaker-minded citizens
with controlled substances typically deemed illegal.
Sell Shipments of LSD, Cocaine, Heroine and Weed.]], {}, "drugdealer", 2, 90, 0, false, false)
TEAM_SALESMAN = AddExtraTeam("Salesman", Color(0, 210, 210, 255), "models/player/Group01/billy.mdl" , [[As a Salesman you sell everyday items.
Sell Water, Aspirin, Coffee and Soda.]], {}, "salesman", 2, 90, 0, false, false)
TEAM_MANAGER = AddExtraTeam("Hotel Manager", Color(255, 0, 0, 255), "models/player/Hostage/Hostage_02.mdl" , [[As a Hotel Manager you own the apartment building.
You sell and rent rooms out to your fellow citizens.
Be fair with prices or get demoted.]], {}, "manager", 2, 90, 0, false, false)
TEAM_MOVIEMANAGER = AddExtraTeam("Movie Theater Manager", Color(166, 255, 166, 255), "models/player/Hostage/Hostage_03.mdl" , [[As a Movie Theater Manager you run the theater building.
You sell tickets to people to get into the theater.
Be fair with prices or get demoted.
Ticket costs should be 25-50$.
Charge more and you will get demoted or banned.]], {}, "theatermanager", 1, 90, 0, false, false)
TEAM_BARTENDER = AddExtraTeam("Bartender", Color(70, 255, 70, 255), "models/player/Eli.mdl" , [[As a Bartender you purchase shipments of Alcohol and Water.
You sell Alcohol to intoxicate others.
You also sell Water and Milk.]], {}
For future reference wrap any LUA code inside the lua tags, it makes everyones life easier.:wink:
I quickly scanned through it and noticed towards the end, inside of the Professional Thief job you forgot a quotation mark when you are giving information about what they spawn with:
Yours:
[lua]TEAM_THIEF = AddExtraTeam("Professional Thief", Color(141, 141, 141, 255), "models/player/Group01/cookies114.mdl" , [[Professional Thiefs are the best and most
stealthy criminals.
Thiefs are the masters of stealth and their goal
is to not get caught. You are a theif not a murderer.
If you are caught, run and don't gun your way out.]], {"lockpick, keypad_cracker}, "thief", 3, 90, 0, false, false)[/lua]
Should be fixed:
[lua]TEAM_THIEF = AddExtraTeam("Professional Thief", Color(141, 141, 141, 255), "models/player/Group01/cookies114.mdl" , [[Professional Thiefs are the best and most*
stealthy criminals.
Thiefs are the masters of stealth and their goal
is to not get caught. You are a theif not a murderer.
If you are caught, run and don't gun your way out.]], {"lockpick, keypad_cracker"}, "thief", 3, 90, 0, false, false)[/lua]
[QUOTE=munch;37677366]For future reference wrap any LUA code inside the lua tags, it makes everyones life easier.:wink:
I quickly scanned through it and noticed towards the end, inside of the Professional Thief job you forgot a quotation mark when you are giving information about what they spawn with:
Yours:
[lua]TEAM_THIEF = AddExtraTeam("Professional Thief", Color(141, 141, 141, 255), "models/player/Group01/cookies114.mdl" , [[Professional Thiefs are the best and most
stealthy criminals.
Thiefs are the masters of stealth and their goal
is to not get caught. You are a theif not a murderer.
If you are caught, run and don't gun your way out.]], {"lockpick, keypad_cracker}, "thief", 3, 90, 0, false, false)[/lua]
Should be fixed:
[lua]TEAM_THIEF = AddExtraTeam("Professional Thief", Color(141, 141, 141, 255), "models/player/Group01/cookies114.mdl" , [[Professional Thiefs are the best and most*
stealthy criminals.
Thiefs are the masters of stealth and their goal
is to not get caught. You are a theif not a murderer.
If you are caught, run and don't gun your way out.]], {"lockpick, keypad_cracker"}, "thief", 3, 90, 0, false, false)[/lua][/QUOTE]
Thanks it helped but whats ur steam name i need help with some other server things and i dont have time for making new threads
You can probably find me by searching "munchug".
However, I'm not here to spoon feed you and currently running 4 DarkRP servers of my own so please be patient. I'm also shit at coding. :v:
Sorry, you need to Log In to post a reply to this thread.