Hello today I am using darkrpmodification to add a vehicle tab for players to spawn vehicles in the typical F4 menu, however somethin ain't right :/
This is the code I have put under darkrp_customthings/vehicles.lua
I am in need of a genius to help me.
---------------------------------------------------------
DarkRP.createVehicle({
name = "kk_tank_v2",
model = "models/sligwolf/tank/sw_tank_leo.mdl",
price = 5000,
label = "United States M1A2 Abrams Tank",
allowed = {TEAM_ENLISTED, TEAM_USOFFICERS},
customCheck = function(ply) return CLIENT or
table.HasValue({"donator", "admin", "superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You must purchase VIP to use this vehicle!",
})
DarkRP.createVehicle({
name = "sw_tank_v2",
model = "models/sligwolf/tank/sw_tank_leo.mdl",
price = 5000,
label = "Russian Armada Tank",
allowed = {TEAM_RUSSIA, TEAM_RUSSIAM, TEAM_DRONE},
customCheck = function(ply) return CLIENT or
table.HasValue({"donator", "admin", "superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You must purchase VIP to use this vehicle!",
})
Why the heck is it not showing up in the F4 menu, thanks!
Sorry, you need to Log In to post a reply to this thread.