• Cars from F4 menu.
    6 replies, posted
Can someone tell me the code for cars to spawn in the F4 menu? Everything I tried on google doesn't work.
If you're talking about making the cars appear in the F4 menu, you'd use this format, assuming you're using DarkRP. [lua] DarkRP.createVehicle({ name = Name_of_vehicle, model = model, price = price, allowed = Jobs_that_can_buy_it, -- Optional customCheck = customcheck -- Optional label = Label_to_show_in_F4_menu -- Optional, will use name if not set distance = 85 -- Optional, an offset distance, use when the vehicles are really big and spawn inside the player angle = Angle(0, 0, 0) -- Optional, an offset angle }) [/lua] You can find this and other related concepts for modifying DarkRP here: [url]http://wiki.darkrp.com/index.php/Main_Page[/url]
[QUOTE=Jeezy;47093634]If you're talking about making the cars appear in the F4 menu, you'd use this format, assuming you're using DarkRP. [lua] DarkRP.createVehicle({ name = Name_of_vehicle, model = model, price = price, allowed = Jobs_that_can_buy_it, -- Optional customCheck = customcheck -- Optional label = Label_to_show_in_F4_menu -- Optional, will use name if not set distance = 85 -- Optional, an offset distance, use when the vehicles are really big and spawn inside the player angle = Angle(0, 0, 0) -- Optional, an offset angle }) [/lua] You can find this and other related concepts for modifying DarkRP here: [url]http://wiki.darkrp.com/index.php/Main_Page[/url][/QUOTE] Where would I put that?? Would it go in my entities.lua? I don't have a vehicles tab on my F4, so I don't think it would work if it goes into my vehicles.lua
bump :p
[QUOTE=ImDesire;47112691]Where would I put that?? Would it go in my entities.lua? I don't have a vehicles tab on my F4, so I don't think it would work if it goes into my vehicles.lua[/QUOTE] Are you that lazy you don't even want to try? ..Seriously. [sp]It even says it here http://wiki.darkrp.com/index.php/DarkRP:Vehicles[/sp]
I tried it like 2 days ago. It didn't work. Probably because of my do menu.
Should put in the same place your other entities are bought from, unless darkrp has changed recently.
Sorry, you need to Log In to post a reply to this thread.