Hello i have a quick question,
I have tried to create a car dealler job but it breaks the gamemode can anyone provide the code for me please
and also is it possible for Civil protection to be able to use police cars like
[url]http://www.garrysmod.org/downloads/?a=view&id=70726[/url]
and if so what would the code be
thanks alot
The player would need to download the car model...
-SNIIIIIIIIIIIIP-
[QUOTE=Banana-man;29304407]If it is an addon on the server they'll downloade it when they join..[/QUOTE]
Oh yeah.
TEAM_CARDEALER = AddExtraTeam("Car Dealer", Color(33,99,0,255), "models/player/barney.mdl", [[Sell cars and make lots of profit!]], {}, "cardealer", 2, 55, 0, false, false)
Put this in the darkrp's shared.lua
There can be [B]2[/B] at one time, [B]$55[/B] is their salary.
AddCustomVehicle("Jeep", "models/buggy.mdl", 100 ){TEAM_CARDEALER}
AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_CARDEALER}
Put this in the addentities.lua where it says AddCustomVehicles.
You may need to paste this over the default vehicle code.
Adjust 100 and 600 to the prices of them for the cardealer to spawn them.
[QUOTE=Proost;29313476]TEAM_CARDEALER = AddExtraTeam("Car Dealer", Color(33,99,0,255), "models/player/barney.mdl", [[Sell cars and make lots of profit!]], {}, "cardealer", 2, 55, 0, false, false)
Put this in the darkrp's shared.lua
There can be [B]2[/B] at one time, [B]$55[/B] is their salary.
AddCustomVehicle("Jeep", "models/buggy.mdl", 100 ){TEAM_CARDEALER}
AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_CARDEALER}
Put this in the addentities.lua where it says AddCustomVehicles.
You may need to paste this over the default vehicle code.
Adjust 100 and 600 to the prices of them for the cardealer to spawn them.[/QUOTE]
He wanted the CP's only to spawn them, and wanted a police cars, not a jeeps and airboats. Read
[QUOTE=xmathewx75;29327023]He wanted the CP's only to spawn them, and wanted a police cars, not a jeeps and airboats. Read[/QUOTE]
then just replace the jeep and airboat entity with the police cars
[QUOTE=xmathewx75;29327023]He wanted the CP's only to spawn them, and wanted a police cars, not a jeeps and airboats. Read[/QUOTE]
Actually he wanted a car dealer job [B]"and also is it possible for Civil protection to be able to use police cars like"[/B]
And he can just set the TEAM to Police and change it to enforcer and copcar.
ITT: People who are so bad at lua they can't edit DarkRP; Awesome face avatar onslaught.
[QUOTE=cis.joshb;29371910]ITT: People who are so bad at lua they can't edit DarkRP; Awesome face avatar onslaught.[/QUOTE]
You are not far in front of the OP
Car Dealer job is fucked up. Make a NPC and then some derma things. Hook it up to mysql. So when they buy the car it's saved and when you come back you can spawn it. (in the derma shit)
Simple
i got it working thanks guys!! :)
Sorry, you need to Log In to post a reply to this thread.