Creates a script wrapper for an existing connected player with this ID; it does not create a player.
Network entity identifier.
Adds cash to this player's native inventory and HUD counter.
Cash amount in dollars to add.
Closes this player's active lockpicking minigame.
Removes this player's animation-style override.
Clears this player's left-hand, right-hand, and mouth prop models.
Empties the player's recognition/search meter.
Clears the player's wanted-level HUD icon.
Hides the player's wanted-person HUD tag.
Removes this player's active GPS waypoint and route.
Closes this player's active native shop interface.
Removes a persistent HUD hint from this player.
Tag assigned when the persistent hint was shown.
OptionalpayloadJson: stringReturns the most recently replicated animation-set identifier.
The applied animation-set ID, or zero when no override is active.
Returns the most recently replicated held-weapon identifier.
The current weapons.tbl row ID; 1 represents fists.
Returns the most recently owner-reported health value.
Current replicated health, including native damage.
Returns the most recently owner-reported cash balance.
Current balance in dollars, including native in-game spending.
Returns the player's current replicated on-foot gait.
One of idle, walking, running, or stopping.
Returns the vehicle currently occupied by this player in any seat.
The current vehicle handle, or null when the player is not in a vehicle.
Changes reserve ammunition for one of this player's weapons.
weapons.tbl row identifier.
Reserve ammunition delta; negative values remove ammunition.
Adds a valid weapon to this player's native inventory.
weapons.tbl row identifier.
Initial reserve ammunition amount.
Whether the weapon should become the current weapon immediately.
Smoothly moves this player's camera from its current view to a fixed destination until resetCamera is called.
Destination camera world-space X coordinate.
Destination camera world-space Y coordinate.
Destination camera world-space Z coordinate.
Destination world-space look-at X coordinate.
Destination world-space look-at Y coordinate.
Destination world-space look-at Z coordinate.
Transition duration in seconds.
Checks the player's most recently replicated crouch state.
True when the player is crouching.
Checks the player's most recently reported death state.
True when the player is dead.
Optionalreason: stringInstantly kills this player on the owning client.
Shows or clears visual prop models in this player's hands. Hand slots are shared with the equipped weapon.
False clears both hand slots; true applies the supplied models.
weapons.tbl prop-row ID for the left hand; an unknown ID clears the slot.
weapons.tbl prop-row ID for the right hand; an unknown ID clears the slot.
Shows a visual prop model in this player's mouth.
weapons.tbl prop-row ID; an unknown ID clears the mouth slot.
Requests the native shop interface for this player; opening is a no-op when the shop is not streamed.
shopmenu2.bin configuration name of a shop streamed on the player's client.
Plays a non-spatial police dispatch line server-wide.
Police radio event name from the shared event registry.
False when the event name is unknown.
Removes all weapons from this player and switches to fists.
Removes cash from this player's native inventory.
Cash amount in dollars to remove; removal is clamped to the available balance.
Removes one weapon from this player's inventory and switches to fists when necessary.
weapons.tbl row identifier to remove.
Returns camera control to this player's normal gameplay camera.
Restores this player to full native health.
Overrides this player's walk and idle animation style.
Animation-style registry category.
Registered style name within the selected category.
True when the category and style were found and applied.
Cuts this player's camera to a fixed position and look-at target until resetCamera is called.
Camera world-space X coordinate.
Camera world-space Y coordinate.
Camera world-space Z coordinate.
World-space X coordinate the camera looks at.
World-space Y coordinate the camera looks at.
World-space Z coordinate the camera looks at.
Sets whether this player's owning client accepts gameplay controls.
True to accept gameplay input; false to lock movement, combat, and vehicle controls.
Equips one of this player's owned weapons.
Owned weapons.tbl row identifier to equip.
Applies the native temporary drunkenness effect, including camera shake and aim sway.
Drunkenness from 0 for sober to 1 for fully drunk.
Sets this player's health on the owning client.
Target health value, clamped to the pedestrian's native maximum.
Changes this player's body model and replicates the new skin.
Index in the shared player-model registry.
Recolors this player's current outfit without reloading the model; unsupported variants are ignored.
Per-model palette variant; -1 restores the default.
Selects and applies a random model from the Mafia II player model directory.
Sets the recognition/search meter beside the player's minimap.
Recognition level from 0 for empty to 1 for full.
Enables or disables unlimited ammunition for this player.
Whether this player's ammunition is infinite.
Sets the player's native wanted-level HUD icon.
Wanted escalation level from 0 through 4.
Sets visibility of the player's wanted-person HUD tag.
Whether the native wanted-person icon is shown.
Sets or replaces this player's GPS waypoint and computes a client-side route.
World-space X coordinate of the destination.
World-space Y coordinate of the destination.
Optionalz: number
Optional world-space Z coordinate; routing uses the map's two-dimensional road graph.
Sets absolute ammunition counts for one of this player's weapons.
weapons.tbl row identifier.
Absolute reserve ammunition amount.
Absolute loaded-clip amount; a negative value preserves the current clip.
Shows a native two-choice confirmation dialog. The result is emitted as playerDialogAnswer.
Opaque caller-defined ID echoed by the playerDialogAnswer event.
Dialog question or title text.
Label for the accepting option.
Label for the declining option.
Time before the dialog is dismissed automatically.
Shows a configurable native hint on this player's HUD.
Hint text displayed to the player.
Native script-hint area identifier from 0 through 3.
ARGB color value; -1 uses white.
Display duration in seconds when the hint is not persistent.
Whether the hint remains until explicitly destroyed.
Caller-defined identifier used by destroyHint; use a non-zero value for persistent hints.
Changes native HUD visibility for this player; hide and show calls are reference-counted on the client.
True to show the HUD; false to hide it.
Shows a temporary native HUD message to this player.
Message displayed on the player's top HUD message line.
How long the message remains visible, in seconds.
Shows the native multiple-choice question UI. The result is emitted as playerQuestionAnswer with a one-based answer index.
Opaque caller-defined ID echoed by the playerQuestionAnswer event.
Question text shown to the player.
One to four answer labels; entries beyond the fourth are ignored.
Time before the prompt is dismissed automatically.
Respawns this player at a world-space position.
Respawn world-space X coordinate.
Respawn world-space Y coordinate.
Respawn world-space Z coordinate.
Starts the native lockpicking minigame. Completion, failure, or escape is emitted as playerLockpickResult.
Opaque caller-defined ID echoed by the playerLockpickResult event.
Difficulty from 1 through 5 pins.
Allowed broken pins before failure; zero or less means unlimited attempts.
Sets, shows, and starts the player's native countdown timer.
Initial countdown duration in seconds.
Stops and hides the player's native countdown timer.
Returns a readable representation of this player.
The player ID and nickname formatted for logging or debugging.
ReadonlydiscordReadonlyhardwareReadonlyidReadonlyipReadonlymodelCurrent shared player-model registry index, or -1 when unset or unknown.
ReadonlymodelCurrent per-model palette variant, or -1 for the default.
ReadonlynicknameCurrent connected-player nickname.
ReadonlypingReadonlysteamReadonlyvirtual
A connected M2O player.