Unable to GM_SpawnVehicle

How do I fix this? Whenever I try to spawn an npc or car it gives me this: Unable to GM_SpawnVehicle.

Thanks!

Uh, can you provide more information? What gamemode? What did you try to spawn specifically?

If it’s DarkRP, check your settings/config lua files. I think there’s one in the darkrp gamemode and one in darkrp-modification in settings.lua (or something like that.) There should be a config that makes only the server allowed to spawn vehicles.

Thanks kpj! I forgot to change the settings.lua in darkrpmodification! And sorry I wasn’t specific enough code. Will do better next time :slight_smile: