1. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Can I make it so players cant pick up their vehicles?

Discussion in 'DarkRP Modding Questions & Help' started by [PG] Bubbadude22, Jan 8, 2017.

  1. [PG] Bubbadude22

    [PG] Bubbadude22 New Member

    Hello I was wondering if i can make it so players can pick up their own vehicles because the vehicles can be pushed under the map for some odd reason, and I dont know why? Also is there a way to make it so my trial mods cant pick up vehicles either? Thanks for reading
  2. MaccyD

    MaccyD Member

    Code (Text):

    hook.Add("PhysgunPickup", "_vehicle_NOFUCKOFF_phys", function(ply, ent)
       if ent:IsVehicle() then
            return false
    -- Toolgun as well if you wish
    hook.Add("CanTool", "_vehicle_NOFUCKOFF_tool", function(ply, trace, tool)
        if trace.Entity and trace.Entity:IsVehicle() then
            return false

Share This Page