Hey,
On my server, I had started to code in the TDM Cars and when I got to a ceertain point to test them, they were being sold because I was loosing money, but they weren't spawning.
I'm not quite sure why.
Heres my addentities.lua
[CODE]AddEntity("Aston Martin DBS", {
ent = "dbstdm",
model = "models/tdmcars/dbs.mdl",
price = 12000,
max = 10,
cmd = "/buyast",
allowed = {TEAM_CDEAL}
})
AddEntity("Audi R8 V10", {
ent = "audir8v10tdm",
model = "models/tdmcars/audir8v10.mdl",
price = 100000,
max = 10,
cmd = "/buyaudi",
allowed = {TEAM_CDEAL}
})
AddEntity("Audi S5", {
ent = "s5tdm",
model = "models/tdmcars/s5.mdl",
price = 90000,
max = 10,
cmd = "/buyaudis5",
allowed = {TEAM_CDEAL}
})
AddEntity("Audi TT 2007", {
ent = "auditttdm",
model = "models/tdmcars/auditt.mdl",
price = 85000,
max = 10,
cmd = "/buyauditt",
allowed = {TEAM_CDEAL}
})
AddEntity("BMW 507", {
ent = "507tdm",
model = "models/tdmcars/bmw507.mdl",
price = 20000,
max = 10,
cmd = "/buybmw507",
allowed = {TEAM_CDEAL}
})
AddEntity("BMW M3 E92", {
ent = "m3e92tdm",
model = "models/tdmcars/bmwm3e92.mdl",
price = 45000,
max = 10,
cmd = "/buybmwm3e92",
allowed = {TEAM_CDEAL}
})
AddEntity("BMW M5 E60", {
ent = "bmwm5e60tdm",
model = "models/tdmcars/bmwm5e60.mdl",
price = 50000,
max = 10,
cmd = "/buybmwm5e60",
allowed = {TEAM_CDEAL}
})
AddEntity("Bugatti Veyron", {
ent = "bugattiveyrontdm",
model = "models/tdmcars/bugattiveyron.mdl",
price = 300000,
max = 10,
cmd = "/buybugatti",
allowed = {TEAM_CDEAL}
})
AddEntity("Cadalac Esclade", {
ent = "escaladetdm",
model = "models/tdmcars/cad_escalade.mdl",
price = 60000,
max = 10,
cmd = "/buycadesc",
allowed = {TEAM_CDEAL}
})
AddEntity("Chevrolet Camaro ZL1", {
ent = "camarozl1tdm",
model = "models/tdmcars/chev_camzl1.mdl",
price = 80000,
max = 10,
cmd = "/buychevcam",
allowed = {TEAM_CDEAL}
})
AddEntity("Chevrolet Impala 1996", {
ent = "tdmcars_impala96",
model = "models/tdmcars/chev_impala96.mdl",
price = 10000,
max = 10,
cmd = "/buychevimpa",
allowed = {TEAM_CDEAL}
})
AddEntity("Chrysler 300c", {
ent = "300ctdm",
model = "models/tdmcars/chr_300c.mdl",
price = 70000,
max = 10,
cmd = "/buychr300",
allowed = {TEAM_CDEAL}
})
AddEntity("Citroen C4", {
ent = "c4tdm",
model = "models/tdmcars/cit_c4.mdl",
price = 30000,
max = 10,
cmd = "/buycitc4",
allowed = {TEAM_CDEAL}
})
AddEntity("Dodge Charger SRT8", {
ent = "chargersrt8tdm",
model = "models/tdmcars/chargersrt8.mdl",
price = 60000,
max = 10,
cmd = "/buydodgecharge",
allowed = {TEAM_CDEAL}
})
AddEntity("Honda Civic TypeR", {
ent = "civictypertdm",
model = "models/tdmcars/civic_typer.mdl",
price = 30000,
max = 10,
cmd = "/buycivtyr",
allowed = {TEAM_CDEAL}
})
AddEntity("Dodge Ram Truck", {
ent = "dodgeramtdm",
model = "models/tdmcars/dodgeram.mdl",
price = 50000,
max = 10,
cmd = "/buydodgeram",
allowed = {TEAM_CDEAL}
})
AddEntity("Ford Focus RS", {
ent = "focusrstdm",
model = "models/tdmcars/focusrs.mdl",
price = 40000,
max = 10,
cmd = "/buyfocusrs",
allowed = {TEAM_CDEAL}
})
AddEntity("Ford Shelby GT500", {
ent = "gt500tdm",
model = "models/tdmcars/gt500.mdl",
price = 40000,
max = 10,
cmd = "/buygt5000",
allowed = {TEAM_CDEAL}
})
[/CODE]
[highlight](User was banned for this post ("Missed the DarkRP thread" - garry))[/highlight]
Just wandering, you want them to be ablew to buy 10 of each car?
Anyway, Cars are AddVehicle not AddEntity. Doing it like that will spawn cars in shipments I think. I've never used cars with the addenitites.lua, but I think if you just change AddEntity to AddVehicle (Maybe AddCustomVehicle?) and delete max = 10, give that a shot.
[QUOTE=Jongunner;40462979]Just wandering, you want them to be ablew to buy 10 of each car?
Anyway, Cars are AddVehicle not AddEntity. Doing it like that will spawn cars in shipments I think. I've never used cars with the addenitites.lua, but I think if you just change AddEntity to AddVehicle (Maybe AddCustomVehicle?) and delete max = 10, give that a shot.[/QUOTE]
Thanks, I'll try this now.
Sorry, you need to Log In to post a reply to this thread.