I Have Darkrp Svn and I seem not to be able to buy cars because they dont show F4 Menu. Ill paste the class and shipment code below..
Things to know
*Im using singleplayer
*Darkrp Is fully up-to-date
*Cars work and Hl2 jeep ect.. is not showing too
*Cars Salesmen job shows up and i can use it
Code that should be effected will be bold
*Gun Dealer as well as car salesmen both dont show cars
*I Have used Se
<<<this file is "addenties.lua>>>>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How to add custom vehicles:
FIRST
go ingame, type rp_getvehicles for available vehicles!
then:
AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
Examples:
[B]AddCustomVehicle("Jeep", "models/buggy.mdl", 100 )
AddCustomVehicle("Airboat", "models/airboat.mdl" 600, {TEAM_GUN})
AddCustomVehicle("Shelby", 10000, {TEAM_carsale})
AddCustomVehicle("Golf GTI", 5000, {TEAM_carsale})
AddCustomVehicle("Murcielago", 12000, {TEAM_carsale})
AddCustomVehicle("Lambo", 15000, {TEAM_carsale})
AddCustomVehicle("Corvette C6", 13000, {TEAM_carsale})
AddCustomVehicle("Mini", 3000, {TEAM_carsale})
AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_GUN, TEAM_MEDIC})[/B]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This file is called "shared.lua" (below)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------
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 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", 5, 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!!!!
[B]//ADD TEAMS UNDER THIS LINE:
TEAM_carsale = AddExtraTeam( "Car Salemens", Color( 30, 70, 0, 255 ), "models/player/barney.mdl", [[You Provide Cars for the Public]], {}, 'carsale', 2, 65, 0, 0, false)
/*[/B]
--------------------------------------------------------
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.)
1. You have not used rp_getvehicles, use it, then type the results from console into the file.
2. "Salemens" What? You mean Salesman.
3. You put them in the wrong place
[QUOTE=nutnuts;31918442]1. You have not used rp_getvehicles, use it, then type the results from console into the file.
2. "Salemens" What? You mean Salesman.
3. You put them in the wrong place[/QUOTE]
Sorry i meant salesman and carsales is the team name for ex: Gundealer is Team_gun I made the class you can see Team_carsales in the shared.lua in bold an other thing when i do Rp_getvehicles it just says "Jeep" "Lambo" "Mini" ect.. as seen in the bold at the top
[editline]24th August 2011[/editline]
An other thing its says
"AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
[B]Examples:[/B]"
should i add the cars to shipments or leave them under the examples
Sorry, you need to Log In to post a reply to this thread.