five-on-it / packages/sim/src
packages/sim/src
@foi/sim: the deterministic simulation shared by the server and the clients.
References
Act
Re-exports Act
ACT_TICKS
Re-exports ACT_TICKS
actByte
Re-exports actByte
ACTS
Re-exports ACTS
addCash
Re-exports addCash
addItems
Re-exports addItems
aimAngles
Re-exports aimAngles
aimTargets
Re-exports aimTargets
AMMO_POUCH
Re-exports AMMO_POUCH
ammoLeft
Re-exports ammoLeft
applyDamage
Re-exports applyDamage
ARSENAL
Re-exports ARSENAL
ASLEEP
Re-exports ASLEEP
atmAction
Re-exports atmAction
AWAKE
Re-exports AWAKE
AxleDef
Re-exports AxleDef
BANK
Re-exports BANK
bankOf
Re-exports bankOf
benchSeatAt
Re-exports benchSeatAt
BLAST_NOISE
Re-exports BLAST_NOISE
BLAST_RADIUS
Re-exports BLAST_RADIUS
blastSize
Re-exports blastSize
BODIES
Re-exports BODIES
BODY_DOG
Re-exports BODY_DOG
BODY_PERSON
Re-exports BODY_PERSON
BodyPose
Re-exports BodyPose
busyAtCar
Re-exports busyAtCar
CAMERA_DESTROYED
Re-exports CAMERA_DESTROYED
CAMERA_HEALTH
Re-exports CAMERA_HEALTH
CAMERA_OFF
Re-exports CAMERA_OFF
CAMERA_ON
Re-exports CAMERA_ON
CAMERA_STATES
Re-exports CAMERA_STATES
cameraDef
Re-exports cameraDef
cameraYaw
Re-exports cameraYaw
canFire
Re-exports canFire
CAR_HIT_DAMAGE
Re-exports CAR_HIT_DAMAGE
CARJACK
Re-exports CARJACK
carjackerOf
Re-exports carjackerOf
CASH_ITEM
Re-exports CASH_ITEM
cashOf
Re-exports cashOf
castScenery
Re-exports castScenery
CHARACTER
Re-exports CHARACTER
claimVehicle
Re-exports claimVehicle
classOf
Re-exports classOf
COMMON_ITEMS
Re-exports COMMON_ITEMS
CONTACT_CLS
Re-exports CONTACT_CLS
CONTAINER_KINDS
Re-exports CONTAINER_KINDS
CONTAINER_SIZE
Re-exports CONTAINER_SIZE
CONTAINER_SLOTS
Re-exports CONTAINER_SLOTS
containerKind
Re-exports containerKind
countItems
Re-exports countItems
COVER_EXPOSED
Re-exports COVER_EXPOSED
COVER_HIDDEN
Re-exports COVER_HIDDEN
COVER_NONE
Re-exports COVER_NONE
CRASH_WEAPON
Re-exports CRASH_WEAPON
createSimWorld
Re-exports createSimWorld
crossesNailStrip
Re-exports crossesNailStrip
DART_TICKS
Re-exports DART_TICKS
DEAD
Re-exports DEAD
decodeAct
Re-exports decodeAct
decodeLead
Re-exports decodeLead
DEFAULT_PRICE
Re-exports DEFAULT_PRICE
destroySimWorld
Re-exports destroySimWorld
DOG
Re-exports DOG
DOG_HEALTH
Re-exports DOG_HEALTH
DOG_MODES
Re-exports DOG_MODES
DOG_ROLE
Re-exports DOG_ROLE
dogMode
Re-exports dogMode
DogMode
Re-exports DogMode
dogOf
Re-exports dogOf
DOGS
Re-exports DOGS
DOOR_KEYPAD
Re-exports DOOR_KEYPAD
DOOR_SHUT
Re-exports DOOR_SHUT
doorDef
Re-exports doorDef
doorPanel
Re-exports doorPanel
doorPose
Re-exports doorPose
doorwayNear
Re-exports doorwayNear
driverDoorSpot
Re-exports driverDoorSpot
Drivetrain
Re-exports Drivetrain
enterVehicle
Re-exports enterVehicle
EntityState
Re-exports EntityState
ESCALATOR
Re-exports ESCALATOR
EXIT
Re-exports EXIT
exitMode
Re-exports exitMode
exitVehicle
Re-exports exitVehicle
EXPLOSION_WEAPON
Re-exports EXPLOSION_WEAPON
FALL
Re-exports FALL
FALL_WEAPON
Re-exports FALL_WEAPON
feetOf
Re-exports feetOf
FIRE
Re-exports FIRE
FIRE_STATE
Re-exports FIRE_STATE
FIRE_WEAPON
Re-exports FIRE_WEAPON
fireBlock
Re-exports fireBlock
FISTS
Re-exports FISTS
FLEE_PACE
Re-exports FLEE_PACE
FLEE_RADIUS
Re-exports FLEE_RADIUS
FREE_ROAM
Re-exports FREE_ROAM
freeDog
Re-exports freeDog
FUEL
Re-exports FUEL
fuelOffer
Re-exports fuelOffer
fullHealth
Re-exports fullHealth
fuseTicks
Re-exports fuseTicks
garageOffer
Re-exports garageOffer
GaragePrices
Re-exports GaragePrices
GarageService
Re-exports GarageService
GATE
Re-exports GATE
gateSystem
Re-exports gateSystem
generationOf
Re-exports generationOf
getCharacterSeat
Re-exports getCharacterSeat
getCharacterVehicle
Re-exports getCharacterVehicle
getPose
Re-exports getPose
getVehicleClass
Re-exports getVehicleClass
getVehicleSteer
Re-exports getVehicleSteer
getVehicleTrailer
Re-exports getVehicleTrailer
getVehicleTyres
Re-exports getVehicleTyres
getWheelContact
Re-exports getWheelContact
giveLoadout
Re-exports giveLoadout
givePhone
Re-exports givePhone
GRENADE
Re-exports GRENADE
hashSimState
Re-exports hashSimState
hasTrunk
Re-exports hasTrunk
hasVehicleKey
Re-exports hasVehicleKey
HEAD_WIDTH
Re-exports HEAD_WIDTH
heldWeapon
Re-exports heldWeapon
HIT_LIFT
Re-exports HIT_LIFT
HIT_RESTITUTION
Re-exports HIT_RESTITUTION
HIT_SPIN
Re-exports HIT_SPIN
hurt
Re-exports hurt
IDLE_INPUT
Re-exports IDLE_INPUT
ignite
Re-exports ignite
IMPACT_MIN
Re-exports IMPACT_MIN
incapacitate
Re-exports incapacitate
inCover
Re-exports inCover
initPhysics
Re-exports initPhysics
inSafeZone
Re-exports inSafeZone
InteractionKind
Re-exports InteractionKind
interactionOf
Re-exports interactionOf
INVENTORY_SLOTS
Re-exports INVENTORY_SLOTS
isBehind
Re-exports isBehind
isBurning
Re-exports isBurning
isCameraOn
Re-exports isCameraOn
isCarjacking
Re-exports isCarjacking
isDog
Re-exports isDog
isDogEntity
Re-exports isDogEntity
isDown
Re-exports isDown
isGhost
Re-exports isGhost
isHittable
Re-exports isHittable
isIndoors
Re-exports isIndoors
isInvincible
Re-exports isInvincible
isLocked
Re-exports isLocked
isLying
Re-exports isLying
isMissionItem
Re-exports isMissionItem
isOnLead
Re-exports isOnLead
isOut
Re-exports isOut
isPickup
Re-exports isPickup
isPieceLoose
Re-exports isPieceLoose
isProxy
Re-exports isProxy
isReeledIn
Re-exports isReeledIn
isTrailer
Re-exports isTrailer
isWrecked
Re-exports isWrecked
ItemAction
Re-exports ItemAction
ItemDef
Re-exports ItemDef
itemIndex
Re-exports itemIndex
itemMatches
Re-exports itemMatches
ItemStack
Re-exports ItemStack
knockDown
Re-exports knockDown
KNOCKDOWN_SPEED
Re-exports KNOCKDOWN_SPEED
KNOCKDOWN_TICKS
Re-exports KNOCKDOWN_TICKS
knockDownByCar
Re-exports knockDownByCar
KNOCKED_OUT
Re-exports KNOCKED_OUT
KNOCKOUT_CONE
Re-exports KNOCKOUT_CONE
LADDER
Re-exports LADDER
ladderNear
Re-exports ladderNear
laidStrip
Re-exports laidStrip
LaidStrip
Re-exports LaidStrip
LAVA_WEAPON
Re-exports LAVA_WEAPON
leaveSeat
Re-exports leaveSeat
LIFT
Re-exports LIFT
liftHeight
Re-exports liftHeight
listCameras
Re-exports listCameras
listCharacters
Re-exports listCharacters
listContainers
Re-exports listContainers
listDogs
Re-exports listDogs
listDoors
Re-exports listDoors
listLoosePieces
Re-exports listLoosePieces
listNailStrips
Re-exports listNailStrips
listPedestrians
Re-exports listPedestrians
listPickups
Re-exports listPickups
listProjectiles
Re-exports listProjectiles
listTerminals
Re-exports listTerminals
listTrailers
Re-exports listTrailers
listVehicles
Re-exports listVehicles
Livery
Re-exports Livery
Loadout
Re-exports Loadout
LoadoutStack
Re-exports LoadoutStack
lockVehicle
Re-exports lockVehicle
LOOSEN_ENERGY
Re-exports LOOSEN_ENERGY
loosenSpeed
Re-exports loosenSpeed
LOUD
Re-exports LOUD
LYING_HEIGHT
Re-exports LYING_HEIGHT
markAct
Re-exports markAct
MAX_HEALTH
Re-exports MAX_HEALTH
MAX_PHYSICS_SUBSTEPS
Re-exports MAX_PHYSICS_SUBSTEPS
mayHurt
Re-exports mayHurt
modelOf
Re-exports modelOf
NAIL_STRIP_WIDTH
Re-exports NAIL_STRIP_WIDTH
nearestSpawn
Re-exports nearestSpawn
NO_ITEM
Re-exports NO_ITEM
NO_NODE
Re-exports NO_NODE
NO_VEHICLE
Re-exports NO_VEHICLE
onNailStrip
Re-exports onNailStrip
openDoorAway
Re-exports openDoorAway
opensTo
Re-exports opensTo
OWNER_KINDS
Re-exports OWNER_KINDS
ownsVehicle
Re-exports ownsVehicle
PAINTS
Re-exports PAINTS
parkVehicle
Re-exports parkVehicle
PEDESTRIAN_HEALTH
Re-exports PEDESTRIAN_HEALTH
PEDESTRIAN_ROLES
Re-exports PEDESTRIAN_ROLES
PEDESTRIAN_ZONE
Re-exports PEDESTRIAN_ZONE
pedestrianCommute
Re-exports pedestrianCommute
pedestrianMode
Re-exports pedestrianMode
pedestrianRole
Re-exports pedestrianRole
PedestrianRole
Re-exports PedestrianRole
pedestrianSystem
Re-exports pedestrianSystem
personSpotTaken
Re-exports personSpotTaken
PHONE_AWAY
Re-exports PHONE_AWAY
PHONE_CALL
Re-exports PHONE_CALL
PHONE_ITEM
Re-exports PHONE_ITEM
PHONE_OUT
Re-exports PHONE_OUT
PHONE_WORLD
Re-exports PHONE_WORLD
PICK
Re-exports PICK
pickTarget
Re-exports pickTarget
PISTOL
Re-exports PISTOL
placePiece
Re-exports placePiece
plantPieces
Re-exports plantPieces
PLAYER_HEALTH
Re-exports PLAYER_HEALTH
PlayerDamage
Re-exports PlayerDamage
POLICE_CAR
Re-exports POLICE_CAR
popTyre
Re-exports popTyre
PRIORITY
Re-exports PRIORITY
PURSUIT_TUNE
Re-exports PURSUIT_TUNE
RAGDOLL_TICKS
Re-exports RAGDOLL_TICKS
REACH
Re-exports REACH
reelNailStrip
Re-exports reelNailStrip
removeCharacter
Re-exports removeCharacter
removeContainer
Re-exports removeContainer
removeNailStrip
Re-exports removeNailStrip
removePickup
Re-exports removePickup
removeProjectile
Re-exports removeProjectile
removeSimEntity
Re-exports removeSimEntity
removeTerminal
Re-exports removeTerminal
removeVehicle
Re-exports removeVehicle
resetCameras
Re-exports resetCameras
resetVehicle
Re-exports resetVehicle
respawnCharacter
Re-exports respawnCharacter
ROLE_CLS_BASE
Re-exports ROLE_CLS_BASE
ROLE_CONTACT
Re-exports ROLE_CONTACT
SafeZone
Re-exports SafeZone
sameParty
Re-exports sameParty
seatDoors
Re-exports seatDoors
seatFree
Re-exports seatFree
seatOf
Re-exports seatOf
sendInside
Re-exports sendInside
setBank
Re-exports setBank
setBody
Re-exports setBody
setCameraOn
Re-exports setCameraOn
setCash
Re-exports setCash
setClimbing
Re-exports setClimbing
setCowering
Re-exports setCowering
setDoor
Re-exports setDoor
setGhost
Re-exports setGhost
setIndoors
Re-exports setIndoors
setMaxHealth
Re-exports setMaxHealth
setNailStrip
Re-exports setNailStrip
setOwner
Re-exports setOwner
setPlayerInput
Re-exports setPlayerInput
setPose
Re-exports setPose
setProxy
Re-exports setProxy
setPursuit
Re-exports setPursuit
setRespawn
Re-exports setRespawn
setSitting
Re-exports setSitting
setSlots
Re-exports setSlots
setVehicleClass
Re-exports setVehicleClass
setVehicleDynamics
Re-exports setVehicleDynamics
setVehicleFuelled
Re-exports setVehicleFuelled
setVehicleSteer
Re-exports setVehicleSteer
ShopLine
Re-exports ShopLine
shopStock
Re-exports shopStock
ShopStock
Re-exports ShopStock
ShotTrace
Re-exports ShotTrace
SimEvent
Re-exports SimEvent
SimRules
Re-exports SimRules
SimWorld
Re-exports SimWorld
SIT
Re-exports SIT
sitDown
Re-exports sitDown
slotsOf
Re-exports slotsOf
snapshotEntities
Re-exports snapshotEntities
spawnCharacter
Re-exports spawnCharacter
spawnContainer
Re-exports spawnContainer
spawnDog
Re-exports spawnDog
SPAWNER
Re-exports SPAWNER
spawnerSystem
Re-exports spawnerSystem
spawnNailStrip
Re-exports spawnNailStrip
spawnPedestrian
Re-exports spawnPedestrian
spawnPickup
Re-exports spawnPickup
spawnShop
Re-exports spawnShop
spawnTerminal
Re-exports spawnTerminal
spawnVehicle
Re-exports spawnVehicle
spendCash
Re-exports spendCash
startSpawners
Re-exports startSpawners
STATUS_TICKS
Re-exports STATUS_TICKS
STATUSES
Re-exports STATUSES
statusName
Re-exports statusName
statusOf
Re-exports statusOf
stepSim
Re-exports stepSim
storedCars
Re-exports storedCars
STUNNED
Re-exports STUNNED
takeCash
Re-exports takeCash
takeItems
Re-exports takeItems
TERMINAL_KINDS
Re-exports TERMINAL_KINDS
TERMINAL_VERBS
Re-exports TERMINAL_VERBS
TerminalKind
Re-exports TerminalKind
terminalSize
Re-exports terminalSize
TIE
Re-exports TIE
traceShot
Re-exports traceShot
TRANQUILIZER
Re-exports TRANQUILIZER
TRUNK_SLOTS
Re-exports TRUNK_SLOTS
unlocks
Re-exports unlocks
VAULT_SHARE
Re-exports VAULT_SHARE
VEHICLE_CLASSES
Re-exports VEHICLE_CLASSES
VEHICLE_HEALTH
Re-exports VEHICLE_HEALTH
VehicleClass
Re-exports VehicleClass
VehicleFeatures
Re-exports VehicleFeatures
VehicleInputLike
Re-exports VehicleInputLike
vehicleInWater
Re-exports vehicleInWater
vehicleKey
Re-exports vehicleKey
vehicleOccupants
Re-exports vehicleOccupants
vehicleOwner
Re-exports vehicleOwner
vehicleSpeed
Re-exports vehicleSpeed
vehicleSpotTaken
Re-exports vehicleSpotTaken
wake
Re-exports wake
WAKE_RADIUS
Re-exports WAKE_RADIUS
walkerOf
Re-exports walkerOf
WATER
Re-exports WATER
WATER_WEAPON
Re-exports WATER_WEAPON
waterAt
Re-exports waterAt
WeaponDef
Re-exports WeaponDef
weaponHeldAt
Re-exports weaponHeldAt
WeaponKind
Re-exports WeaponKind
weaponOfItem
Re-exports weaponOfItem
WEAPONS
Re-exports WEAPONS
weaponSlot
Re-exports weaponSlot
wheelAngle
Re-exports wheelAngle