User contributions for Shr0x

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

29 May 2024

  • 17:0517:05, 29 May 2024 diff hist +558 N Vehicle::setSuspensionHeightCreated page with "{{ClientsideJsFunction}} {{JSContainer| Set vehicle's suspension height. ===Required Params=== *'''value''': {{RageType|number}} Positive value lowers the suspension, negative value raises it. Set it to 0.0 for default vehicle suspension. ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.setSuspensionHeight(value); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See a..."
  • 17:0017:00, 29 May 2024 diff hist +378 N Vehicle::getWheelWidthCreated page with "{{ClientsideJsFunction}} {{JSContainer| Get vehicle's wheel width. ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getWheelWidth(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Vehicle_definition_c}} Category:Clientside API Category:TODO: Example" current
  • 16:5916:59, 29 May 2024 diff hist +466 N Vehicle::getWheelTrackWidthCreated page with "{{ClientsideJsFunction}} {{JSContainer| Get vehicle's given wheel track width. ===Required Params=== *'''wheelIndex''': {{RageType|number}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getWheelTrackWidth(wheelIndex); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Vehicle_definition_c}} Category:Clientside API Category:TODO: Example" current
  • 16:5816:58, 29 May 2024 diff hist +378 N Vehicle::getWheelRadiusCreated page with "{{ClientsideJsFunction}} {{JSContainer| Get vehicle wheel radius. ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getWheelRadius(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Vehicle_definition_c}} Category:Clientside API Category:TODO: Example" current
  • 16:5716:57, 29 May 2024 diff hist +457 N Vehicle::getWheelHeightCreated page with "{{ClientsideJsFunction}} {{JSContainer| Get vehicle's given wheel height. ===Required Params=== *'''wheelIndex''': {{RageType|number}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getWheelHeight(wheelIndex); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Vehicle_definition_c}} Category:Clientside API Category:TODO: Example" current
  • 16:5616:56, 29 May 2024 diff hist +457 N Vehicle::getWheelCamberCreated page with "{{ClientsideJsFunction}} {{JSContainer| Get vehicle's given wheel camber. ===Required Params=== *'''wheelIndex''': {{RageType|number}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getWheelCamber(wheelIndex); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Vehicle_definition_c}} Category:Clientside API Category:TODO: Example" current
  • 16:5516:55, 29 May 2024 diff hist +453 N Vehicle::getTyreWidthCreated page with "{{ClientsideJsFunction}} {{JSContainer| Get vehicle's given tyre width. ===Required Params=== *'''wheelIndex''': {{RageType|number}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getTyreWidth(wheelIndex); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Vehicle_definition_c}} Category:Clientside API Category:TODO: Example" current
  • 16:5516:55, 29 May 2024 diff hist +455 N Vehicle::getTyreRadiusCreated page with "{{ClientsideJsFunction}} {{JSContainer| Get vehicle's given tyre radius. ===Required Params=== *'''wheelIndex''': {{RageType|number}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getTyreRadius(wheelIndex); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Vehicle_definition_c}} Category:Clientside API Category:TODO: Example" current
  • 16:5316:53, 29 May 2024 diff hist +2 Vehicle::getRimRadius→‎See also current
  • 16:5316:53, 29 May 2024 diff hist +457 N Vehicle::getRimRadiusCreated page with "{{ClientsideJsFunction}} {{JSContainer| Get vehicle's given wheel rim radius. ===Required Params=== *'''wheelIndex''': {{RageType|number}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getRimRadius(wheelIndex); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Vehicle_function_c}} Category:Clientside API Category:TODO: Example"
  • 16:4116:41, 29 May 2024 diff hist +966 N Vehicle::getHandlingCreated page with "{{ClientsideJsFunction}} {{JSContainer| Gets vehicle handling type value. Handling Types from '''handling.meta''': <pre> fInitialDriveMaxFlatVel fBrakeBiasFront fSteeringLock fTractionCurveLateral fTractionBiasFront fSuspensionCompDamp fSuspensionReboundDamp fSuspensionBiasFront fAntiRollBarBiasFront </pre> ===Required Params=== *'''type''': {{RageType|string}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.getHa..." current
  • 16:4016:40, 29 May 2024 diff hist +2 Vehicle::getDefaultHandling→‎See also current
  • 16:3916:39, 29 May 2024 diff hist +985 N Vehicle::getDefaultHandlingCreated page with "{{ClientsideJsFunction}} {{JSContainer| Gets default vehicle handling type value. Handling Types from '''handling.meta''': <pre> fInitialDriveMaxFlatVel fBrakeBiasFront fSteeringLock fTractionCurveLateral fTractionBiasFront fSuspensionCompDamp fSuspensionReboundDamp fSuspensionBiasFront fAntiRollBarBiasFront </pre> ===Required Params=== *'''type''': {{RageType|string}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehic..."
  • 16:0716:07, 29 May 2024 diff hist +151 Player::addArmourToNo edit summary current
  • 16:0216:02, 29 May 2024 diff hist +617 N Entity::isPositionFrozenCreated page with " {{ClientsideJsFunction}} {{JSContainer| Readonly property, returns whether entity position is frozen or not. ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> entity.isPositionFrozen </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //Example creating a function that checks whether the player position is frozen before unfreezing them. function unfreezePlayer() { if (mp.players.local.isPositionFrozen)..." current
  • 15:5615:56, 29 May 2024 diff hist +693 N Player::setAmmoInClipCreated page with " {{ClientsideJsFunction}} {{JSContainer| Sets ammo in clip for given weapon hash, the player must have that weapon in his weapon list. ===Required Params=== *'''weapon:''' {{RageType|number}} *'''ammo:''' {{RageType|number}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> player.setAmmoInClip(weapon, ammo); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.players.local.giveWeapon(mp.game.joaat("weapon_p..." current
  • 11:3111:31, 29 May 2024 diff hist +76 Ui::setHelpMessageTextStyleNo edit summary current
  • 09:1209:12, 29 May 2024 diff hist +80 N User:Shr0xCreated page with "if ur not beasting what is u doin ? https://www.youtube.com/watch?v=nomWwYObjpU" current
  • 08:4608:46, 29 May 2024 diff hist +148 Vehicle::Vehicle→‎See also current
  • 08:4508:45, 29 May 2024 diff hist +523 N Vehicle::trimColorCreated page with "{{ServersideJsFunction}} {{JSContainer| ===Required value=== *'''trimColor:''' {{RageType|number}} ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.trimColor </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.new(mp.joaat("sultanrs"), new mp.Vector3(-541.0401611328125, -1287.0777587890625, 26.901586532592773)); vehicle.trimColor = 1; </syntaxhighlight> }} ==See also== {{..." current
  • 08:4308:43, 29 May 2024 diff hist +587 N Vehicle::taxiLightsCreated page with "{{ServersideJsFunction}} {{JSContainer| Enables or disables vehicle taxi lights, also return its value. ===Required value=== *'''enable:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.taxiLights </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.new(mp.joaat("taxi"), new mp.Vector3(-541.0401611328125, -1287.0777587890625, 26.901586532592773));..." current
  • 08:3508:35, 29 May 2024 diff hist +617 N Vehicle::streamedPlayersCreated page with "{{ServersideJsFunction}} {{JSContainer| Returns an array of players that are streamed in for the vehicle. ===Return value=== *''' {{RageType|Player[]}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.streamedPlayers </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.at(0);// find vehicle id 0 if (!vehicle || !mp.vehicles.exists(vehicle)) return; vehicle.streamedPlayers.forEach((player) => { player.outputChatBo..." current
  • 08:3008:30, 29 May 2024 diff hist −2 Vehicle::isStreamedForNo edit summary current
  • 08:2408:24, 29 May 2024 diff hist +786 N Vehicle::isStreamedForCreated page with "{{ServersideJsFunction}} {{JSContainer| ===Required Params=== *'''player''' {{RageType|Player}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.isStreamedFor(player); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.at(0); //find vehicle with id 0; const player = mp.players.at(13); //find player with id 13 if (vehicle.isStreamedFor(player)) { console.log(`Vehicle..."
  • 04:4004:40, 29 May 2024 diff hist +411 N Player::getCurrentScenarioIdCreated page with " {{ClientsideJsFunction}} {{JSContainer| Returns the scenario ID player is playing. ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.players.local.getCurrentScenarioId(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //to-do </syntaxhighlight> }} ==See also== {{Player_definition_c}} Category:Clientside API Category:TODO: Example" current
  • 04:3704:37, 29 May 2024 diff hist +497 N Nametags.orderByDistanceCreated page with "{{ClientsideJsFunction}} {{JSContainer| Disabled by default; you might want to draw nametags in reverse order when enabled. ===Return value=== *'''enable:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.nametags.orderByDistance </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.nametags.orderByDistance = true; </syntaxhighlight> }} ==See also== {{Nametags_functions_c}} Cat..." current
  • 04:3604:36, 29 May 2024 diff hist +541 N Nametags.useScreen2dCoordsCreated page with "{{ClientsideJsFunction}} {{JSContainer| Enabled by default, when set to false, passes 3D world coords to render event (so it can be used with set/clearDrawOrigin) ===Return value=== *'''enable:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.nametags.useScreen2dCoords </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.nametags.useScreen2dCoords = false; </syntaxhighlight> }}..." current
  • 04:3504:35, 29 May 2024 diff hist +216 Template:Nametags functions cNo edit summary current
  • 04:3404:34, 29 May 2024 diff hist −241 Client-side functions→‎Nametags
  • 04:3304:33, 29 May 2024 diff hist −28 Nametags.enabledNo edit summary current
  • 04:3304:33, 29 May 2024 diff hist +50 N Template:Nametags functions cCreated page with "Nametags *mp.nametags.enabled"
  • 04:3204:32, 29 May 2024 diff hist +141 Nametags.enabledNo edit summary
  • 04:2704:27, 29 May 2024 diff hist +560 N Players::reloadResourcesCreated page with "{{ServersideJsFunction}} {{JSContainer| Reloads client-side resources for all in game players, does not include DLCPacks or Game modification files. ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.players.reloadResources(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.events.addCommand("reloadcs", (player) => { mp.players.reloadResources(); player.outputChatBox("Client side resources wer..." current
  • 04:2104:21, 29 May 2024 diff hist +329 N Network::endBatchCreated page with "{{ServersideJsFunction}} {{JSContainer| Disables manual batch mode for all global API calls that are enabled with https://wiki.rage.mp/index.php?title=Network::startBatch startBatch ==Syntax== <pre> mp.network.endBatch(); </pre> ==Example== <syntaxhighlight lang="javascript"> mp.network.endBatch(); </syntaxhighlight> }}" current
  • 04:1904:19, 29 May 2024 diff hist +305 N Network::startBatchCreated page with "{{ServersideJsFunction}} {{JSContainer| Enables manual batch mode for all global API calls, decreases overhead of automatic processing of more small packets. ==Syntax== <pre> mp.network.startBatch(); </pre> ==Example== <syntaxhighlight lang="javascript"> mp.network.startBatch(); </syntaxhighlight> }}" current
  • 04:1504:15, 29 May 2024 diff hist +353 Package Protocolpackage2

28 May 2024

27 May 2024

  • 04:4204:42, 27 May 2024 diff hist +358 N Cam::replayFreeGetMaxRangeCreated page with " {{ClientsideJsFunction}} {{JSContainer| ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.cam.replayFreeGetMaxRange() </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Cam_functions_c}} Category:Clientside API Category:TODO: Example" current
  • 04:4204:42, 27 May 2024 diff hist +439 N Cam::setGameplayVehicleCameraNameCreated page with " {{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''vehicleModel:''' {{RageType|number}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.cam.setGameplayVehicleCameraName(vehicleModel) </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Cam_functions_c}} Category:Clientside API Category:TODO: Example" current
  • 04:4204:42, 27 May 2024 diff hist +433 N Cam::setGameplayVehicleCameraCreated page with " {{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''vehicleName:''' {{RageType|string}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.cam.setGameplayVehicleCamera(vehicleName) </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Cam_functions_c}} Category:Clientside API Category:TODO: Example" current
  • 04:4204:42, 27 May 2024 diff hist +400 N Cam::setEffectCreated page with " {{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''p0:''' {{RageType|number}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.cam.setEffect(p0) </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Cam_functions_c}} Category:Clientside API Category:TODO: Example" current
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)