Hey, Im a newbie at lua… Im trying to make a racing type gamemode. Ive made a simple menu, and I need help with the command the button on my menu does. Im trying to make it spawn a jeep or airboat. Heres the code im using, any help will be really appreciated.
JeepButton.DoClick = function() RunConsoleCommand(“gm_spawnvehicle”, “vehicle_jeep”) CarFrame:Close() end
Thanks. Please reply.