CityRP Documentation Repository

core.plugins.bodybags.entities.cityrp_bodybag.shared

Functions

SharedENT:CanPayUser(ply, requireHeld) → booleanSource ☍

Parameters

  • plyany
  • requireHeldany

Returns

  1. boolean
SharedENT:CheckVehicle(ent) → booleanSource ☍

Parameters

  • entany

Returns

  1. boolean
SharedENT:Draw()Source ☍
SharedENT:FindNearbyAmbulance() → booleanSource ☍

Returns

  1. boolean
SharedENT:Initialize()Source ☍
SharedENT:SetupDataTables()Source ☍

Networks whether the bag is occupied, whose body it holds, and their death reason.

SharedENT:TryAmbulancePayout(ply, requireHeld)Source ☍

Parameters

  • plyany
  • requireHeldany
SharedENT:Use(activator, caller, useType, value)Source ☍

Parameters

  • activatorany
  • callerany
  • useTypeany
  • valueany

Tables

SharedENT.AllowedModelsSource ☍

Fields

SharedENT._NextAmbulancePayoutCheckSource ☍
SharedENT._PayoutProcessedSource ☍

Claim payout before DropObject; drop fires CityRP.KeysDroppedEntity synchronously.

SharedENT.AdminOnlySource ☍
SharedENT.AuthorSource ☍
SharedENT.BaseSource ☍
SharedENT.CategorySource ☍
SharedENT.ContactSource ☍
SharedENT.DoNotDuplicateSource ☍
SharedENT.FadeDistSource ☍

Distance at which the text starts to fade.

SharedENT.HUDFadeDistanceSource ☍
SharedENT.InstructionsSource ☍
SharedENT.InvisDistSource ☍

Distance at which the text has faded so much it cannot be seen.

SharedENT.PayAmountSource ☍

The amount that cleaning up the body will give you.

SharedENT.PrintNameSource ☍
SharedENT.PurposeSource ☍
SharedENT.SpawnableSource ☍
SharedENT.TypeSource ☍