• Stopping specific vehicles from being spawned
    2 replies, posted
I used [CODE]hook.Add( "PlayerSpawnVehicle", "NoVehicles", function() return false end [/CODE] to stop all vehicles from being spawned, but I can't figure out how to make only certain ones (ex: Jeep, Airboat ect.) from being spawned. Any ideas?
I don't think using the vehicle:GetClass() would work, because it would most likely return vehicle_jeep or something like that. But you could check if the vehicle's model is a jeep/airboat ect and then return false.
[QUOTE=Ice Tea;40797880]I don't think using the vehicle:GetClass() would work, because it would most likely return vehicle_jeep or something like that. But you could check if the vehicle's model is a jeep/airboat ect and then return false.[/QUOTE] For the life of me I can't figure out how to check the vehicles model
Sorry, you need to Log In to post a reply to this thread.