User contributions for Shr0x

Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

1 February 2025

  • 21:4821:48, 1 February 2025 diff hist +515 N Ui::pausemenu.setItemRangeCreated page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''itemHash:''' {{RageType|number}} *'''rangeFrom:''' {{RageType|number}} *'''rangeTo:''' {{RageType|number}} ===Return value=== *'''{{RageType|void}}''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.ui.pausemenu.setItemRange(itemHash, rangeFrom, rangeTo) </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> ==See also== {{Ui_functions_c}} Category:Client..." current
  • 21:4821:48, 1 February 2025 diff hist +459 N Ui::pausemenu.setItemTextCreated page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''itemHash:''' {{RageType|number}} *'''text:''' {{RageType|string}} ===Return value=== *'''{{RageType|void}}''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.ui.pausemenu.setItemText(itemHash, text) </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> ==See also== {{Ui_functions_c}} Category:Clientside API Category:TODO: Example }}" current
  • 21:4721:47, 1 February 2025 diff hist +471 N Ui::pausemenu.setScreenHeaderCreated page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''screenHash:''' {{RageType|number}} *'''header:''' {{RageType|string}} ===Return value=== *'''{{RageType|void}}''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.ui.pausemenu.setScreenHeader(screenHash, header) </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> ==See also== {{Ui_functions_c}} Category:Clientside API Category:TODO: Example }}" current
  • 21:4621:46, 1 February 2025 diff hist +549 Template:Ui functions cNo edit summary current

30 December 2024

25 December 2024

  • 18:3018:30, 25 December 2024 diff hist +914 N Player::taskCrawlToCoordsCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Directs the player to crawl to specified coordinates. === Syntax === <syntaxhighlight lang="javascript"> player.taskCrawlToCoords(pos, isOnBack, timeout); </syntaxhighlight> === Required Parameters === * '''pos:''' {{RageType|mp.Vector3}} - The target coordinates. * '''isOnBack:''' {{RageType|bool}} - Set to `true` to crawl on the back, or `false` to crawl face-down. * '''timeout:''' {{RageType|number}} - The tim..." current
  • 18:2918:29, 25 December 2024 diff hist +627 N Player::taskCrawlCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Makes the player crawl on the ground in a prone position. === Syntax === <syntaxhighlight lang="javascript"> player.taskCrawl(isOnBack); </syntaxhighlight> === Required Parameters === * '''isOnBack:''' {{RageType|bool}} - Set to `true` to crawl on the back, or `false` to crawl face-down. === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascript"> // Make the local player crawl fac..." current
  • 18:2918:29, 25 December 2024 diff hist +522 N Player::taskReviveCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Revives a player, ending any death animations and restoring normal movement. === Syntax === <syntaxhighlight lang="javascript"> player.taskRevive(); </syntaxhighlight> === Required Parameters === None === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascript"> // Revive the local player mp.players.local.taskRevive(); mp.gui.chat.push("The player has been revived."); </syntaxhighli..." current
  • 18:2818:28, 25 December 2024 diff hist +574 N Player::taskBleedingDeathCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Starts a bleeding death animation for the player, simulating a fatal injury. === Syntax === <syntaxhighlight lang="javascript"> player.taskBleedingDeath(); </syntaxhighlight> === Required Parameters === None === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascript"> // Trigger bleeding death animation for the local player mp.players.local.taskBleedingDeath(); mp.gui.chat.push("Th..." current
  • 18:2718:27, 25 December 2024 diff hist +198 Template:Player definition cNo edit summary current
  • 18:2518:25, 25 December 2024 diff hist +701 N Weapon::setSimulateLocalDamageImpactsCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Enables or disables the simulation of local damage impacts for weapons. === Syntax === <syntaxhighlight lang="javascript"> mp.game.weapon.setSimulateLocalDamageImpacts(doSimulate); </syntaxhighlight> === Required Parameters === * '''doSimulate:''' {{RageType|bool}} - Set to `true` to enable simulation, or `false` to disable. === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascrip..." current
  • 18:2418:24, 25 December 2024 diff hist +88 Template:Weapon functions cNo edit summary current
  • 18:1918:19, 25 December 2024 diff hist +90 Template:Camera definition cNo edit summary current
  • 18:1818:18, 25 December 2024 diff hist +92 Template:Cam functions cNo edit summary current
  • 18:1818:18, 25 December 2024 diff hist +80 Template:Vehicle functions cNo edit summary current
  • 18:1718:17, 25 December 2024 diff hist +76 Template:Streaming functions cNo edit summary
  • 18:1718:17, 25 December 2024 diff hist +96 Template:Graphics functions cNo edit summary current
  • 18:1618:16, 25 December 2024 diff hist +75 Template:Cutscene functions cNo edit summary current
  • 18:1618:16, 25 December 2024 diff hist +49 Template:GameGlobalsNo edit summary current
  • 18:1518:15, 25 December 2024 diff hist +975 N Globals::waitForAsyncCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Executes a callback function and resolves a promise when the callback completes, or rejects if the timeout is reached. === Syntax === <syntaxhighlight lang="javascript"> mp.game.waitForAsync(cb, timeout = 60000); </syntaxhighlight> === Required Parameters === * '''cb:''' {{RageType|function}} - The callback function to execute. * '''timeout:''' {{RageType|number}} - Optional. Timeout in milliseconds (default: 600..." current
  • 18:1318:13, 25 December 2024 diff hist +1,053 N Cutscene::requestCutsceneAsyncCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Requests a cutscene to be loaded asynchronously, resolving the promise when the cutscene is ready or rejecting on timeout. === Syntax === <syntaxhighlight lang="javascript"> mp.game.cutscene.requestCutsceneAsync(name, flags, timeout = 5000); </syntaxhighlight> === Required Parameters === * '''name:''' {{RageType|string}} - The name of the cutscene to load. * '''flags:''' {{RageType|number}} - Flags for cutscene b..." current
  • 18:1218:12, 25 December 2024 diff hist +963 N Graphics::requestStreamedTextureDictAsyncCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Asynchronously requests a streamed texture dictionary to be loaded. === Syntax === <syntaxhighlight lang="javascript"> mp.game.graphics.requestStreamedTextureDictAsync(name, timeout = 5000); </syntaxhighlight> === Required Parameters === * '''name:''' {{RageType|string}} - The name of the texture dictionary to load. * '''timeout:''' {{RageType|number}} - Optional. Timeout in milliseconds (default: 5000). === Ret..." current
  • 18:1218:12, 25 December 2024 diff hist +1,017 N Streaming::requestAnimDictAsyncCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Requests an animation dictionary asynchronously, resolving when it is loaded or rejecting on timeout. === Syntax === <syntaxhighlight lang="javascript"> mp.game.streaming.requestAnimDictAsync(name, timeout = 5000); </syntaxhighlight> === Required Parameters === * '''name:''' {{RageType|string}} - The name of the animation dictionary to load. * '''timeout:''' {{RageType|number}} - Optional. Timeout in milliseconds..." current
  • 18:1118:11, 25 December 2024 diff hist +1,034 N Vehicle::requestVehicleAssetAsyncCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Asynchronously requests a vehicle asset to be loaded. === Syntax === <syntaxhighlight lang="javascript"> mp.game.vehicle.requestVehicleAssetAsync(nameHash, flags, timeout = 5000); </syntaxhighlight> === Required Parameters === * '''nameHash:''' {{RageType|number}} - The hash of the vehicle model. * '''flags:''' {{RageType|number}} - Flags for asset loading behavior. * '''timeout:''' {{RageType|number}} - Optional..." current
  • 18:0718:07, 25 December 2024 diff hist +824 N Camera::getDofParamCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Retrieves the current value of a specific Depth of Field (DOF) parameter for the active camera. === Syntax === <syntaxhighlight lang="javascript"> camera.getDofParam(paramHash); </syntaxhighlight> === Required Parameters === * '''paramHash:''' {{RageType|number}} - The hash of the DOF parameter to retrieve. === Return Value === * '''{{RageType|bool|number|Array}}''' - The value of the specified DOF parameter. Th..." current
  • 18:0718:07, 25 December 2024 diff hist +788 N Camera::setDofParamCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Sets a specific Depth of Field (DOF) parameter for the active camera. === Syntax === <syntaxhighlight lang="javascript"> camera.setDofParam(paramHash, value); </syntaxhighlight> === Required Parameters === * '''paramHash:''' {{RageType|number}} - The hash of the DOF parameter to set. * '''value:''' {{RageType|bool|number|Array<number>}} - The value to assign to the parameter. === Return Value === * '''undefined'..." current
  • 18:0618:06, 25 December 2024 diff hist +950 N Cam::getDofParamCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Retrieves the value of a specific Depth of Field (DOF) parameter for a specified camera. === Syntax === <syntaxhighlight lang="javascript"> mp.game.cam.getDofParam(cameraHandle, paramHash); </syntaxhighlight> === Required Parameters === * '''cameraHandle:''' {{RageType|number}} - The handle of the camera. * '''paramHash:''' {{RageType|number}} - The hash of the DOF parameter to retrieve. === Return Value === * '..." current
  • 18:0618:06, 25 December 2024 diff hist +971 N Cam::setDofParamCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Sets a specific Depth of Field (DOF) parameter for a specified camera. === Syntax === <syntaxhighlight lang="javascript"> mp.game.cam.setDofParam(cameraHandle, paramHash, value); </syntaxhighlight> === Required Parameters === * '''cameraHandle:''' {{RageType|number}} - The handle of the camera. * '''paramHash:''' {{RageType|number}} - The hash of the DOF parameter to set. * '''value:''' {{RageType|bool|number|Arr..." current

24 December 2024

  • 22:5822:58, 24 December 2024 diff hist +706 N Vehicle::setGearRatiosCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Sets custom gear ratios for the specified vehicle. === Syntax === <syntaxhighlight lang="javascript"> vehicle.setGearRatios(ratios); </syntaxhighlight> === Required Parameters === * '''ratios:''' {{RageType|Array<number>}} - An array of gear ratios. === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascript"> // Set custom gear ratios for a vehicle const myVehicle = mp.players.loca..." current
  • 22:5622:56, 24 December 2024 diff hist +733 N Vehicle::setResetUnoccupiedSteerAngleCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Sets whether the steering angle of unoccupied vehicles should reset automatically. === Syntax === <syntaxhighlight lang="javascript"> mp.game.vehicle.setResetUnoccupiedSteerAngle(value); </syntaxhighlight> === Required Parameters === * '''value:''' {{RageType|boolean}} - Set to `true` to enable automatic reset, `false` to disable. === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="jav..." current
  • 22:5522:55, 24 December 2024 diff hist +811 N Vehicle::getWheelGroundSurfaceMaterialCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Returns the surface material beneath a specific wheel of a vehicle. === Syntax === <syntaxhighlight lang="javascript"> vehicle.getWheelGroundSurfaceMaterial(wheelIndex); </syntaxhighlight> === Required Parameters === * '''wheelIndex:''' {{RageType|number}} The index of the wheel (0 / front left, 1 / front right, etc.). === Return Value === * '''{{RageType|number}}''' - The material identifier for the surface ben..." current
  • 22:5422:54, 24 December 2024 diff hist +790 N Vehicle::setModelGearRatiosCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Sets custom gear ratios for a specific vehicle model. === Syntax === <syntaxhighlight lang="javascript"> mp.game.vehicle.setModelGearRatios(vehicleModelHash, ratios); </syntaxhighlight> === Required Parameters === * '''vehicleModelHash:''' {{RageType|number}} - Hash of the vehicle model. * '''ratios:''' {{RageType|Array<number>}} - Array of gear ratios. === Return Value === * '''undefined''' === Example === <sy..." current
  • 22:5322:53, 24 December 2024 diff hist +841 N Vehicle::setModelDriveForceCurveCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Applies a custom drive force curve to a specific vehicle model. === Syntax === <syntaxhighlight lang="javascript"> mp.game.vehicle.setModelDriveForceCurve(vehicleModelHash, curveNameHash); </syntaxhighlight> === Required Parameters === * '''vehicleModelHash:''' {{RageType|number}} - Hash of the vehicle model. * '''curveNameHash:''' {{RageType|number}} - Hash of the custom drive force curve. === Return Value ===..." current
  • 22:5222:52, 24 December 2024 diff hist +664 N Vehicle::deleteDriveForceCurveCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Deletes a previously created drive force curve. === Syntax === <syntaxhighlight lang="javascript"> mp.game.vehicle.deleteDriveForceCurve(curveNameHash); </syntaxhighlight> === Required Parameters === * '''curveNameHash:''' {{RageType|number}} - The hash identifier for the curve to delete. === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascript"> const curveHash = mp.game.joaat("..." current
  • 22:5122:51, 24 December 2024 diff hist +864 N Vehicle::getDriveForceCurveValueCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Retrieves the drive force output for a specified RPM using a previously created drive force curve. === Syntax === <syntaxhighlight lang="javascript"> mp.game.vehicle.getDriveForceCurveValue(curveNameHash, input); </syntaxhighlight> === Required Parameters === * '''curveNameHash:''' {{RageType|number}} - The hash identifier for the curve. * '''input:''' {{RageType|number}} - The input RPM value. === Return Value..." current
  • 22:5122:51, 24 December 2024 diff hist +889 N Vehicle::createDriveForceCurveCreated page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Creates a custom drive force curve for vehicles, defining how input RPM maps to output drive force. === Syntax === <syntaxhighlight lang="javascript"> mp.game.vehicle.createDriveForceCurve(curveNameHash, curveData); </syntaxhighlight> === Required Parameters === * '''curveNameHash:''' {{RageType|number}} - The hash identifier for the curve. * '''curveData:''' {{RageType|Array<number>}} - Array of alternating X (i..." current

14 December 2024

(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)