User contributions for Shr0x
29 May 2024
- 17:0517:05, 29 May 2024 diff hist +558 N Vehicle::setSuspensionHeight Created 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::getWheelWidth Created 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::getWheelTrackWidth Created 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::getWheelRadius Created 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::getWheelHeight Created 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::getWheelCamber Created 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::getTyreWidth Created 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::getTyreRadius Created 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::getRimRadius Created 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::getHandling Created 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::getDefaultHandling Created 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::addArmourTo No edit summary current
- 16:0216:02, 29 May 2024 diff hist +617 N Entity::isPositionFrozen Created 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::setAmmoInClip Created 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::setHelpMessageTextStyle No edit summary current
- 09:1209:12, 29 May 2024 diff hist +80 N User:Shr0x Created 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::trimColor Created 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::taxiLights Created 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::streamedPlayers Created 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::isStreamedFor No edit summary current
- 08:2408:24, 29 May 2024 diff hist +786 N Vehicle::isStreamedFor Created 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::getCurrentScenarioId Created 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.orderByDistance Created 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.useScreen2dCoords Created 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 c No 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.enabled No edit summary current
- 04:3304:33, 29 May 2024 diff hist +50 N Template:Nametags functions c Created page with "Nametags *mp.nametags.enabled"
- 04:3204:32, 29 May 2024 diff hist +141 Nametags.enabled No edit summary
- 04:2704:27, 29 May 2024 diff hist +560 N Players::reloadResources Created 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::endBatch Created 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::startBatch Created 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 Protocol package2
28 May 2024
- 18:1418:14, 28 May 2024 diff hist +104 Vehicle::getClass No edit summary current
- 18:1218:12, 28 May 2024 diff hist +42,298 Vehicle::getClass generated classes
- 17:5217:52, 28 May 2024 diff hist +158 Vehicle::isModel No edit summary current
- 17:4817:48, 28 May 2024 diff hist +347 Vehicle::getNumberPlateTextIndex No edit summary current
- 03:4303:43, 28 May 2024 diff hist +175 Package Protocol No edit summary
- 03:3403:34, 28 May 2024 diff hist +38 BrowserDomReady No edit summary current
- 03:3403:34, 28 May 2024 diff hist +37 BrowserLoadingFailed No edit summary current
- 03:3403:34, 28 May 2024 diff hist +37 BrowserCreated No edit summary current
- 03:3203:32, 28 May 2024 diff hist −380 Graphics::drawLine No edit summary current
- 03:2703:27, 28 May 2024 diff hist +141 Graphics::getIsHidef No edit summary current
27 May 2024
- 04:4204:42, 27 May 2024 diff hist +358 N Cam::replayFreeGetMaxRange Created 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::setGameplayVehicleCameraName Created 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::setGameplayVehicleCamera Created 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::setEffect Created 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