• Warrant Player = Battering Ram Player's Vehicle
    1 replies, posted
I need a little helpy hand with my battering_ram I want players to be able to breach the vehicles open with the ram but only while the player is warranted for my darkRP serious game server THe code is like this local function ramVehicle(ply, trace, ent)     if ply:EyePos():DistToSqr(trace.HitPos) > 10000 then return false end     if CLIENT then return false end -- Ideally this would return true after ent:GetDriver() check     local driver = ent:GetDriver()     if not IsValid(driver) or not driver.ExitVehicle then return false end     driver:ExitVehicle()     ent:keysLock()     return true end
does that not work or?
Sorry, you need to Log In to post a reply to this thread.