All public logs

Combined display of all available logs of RAGE Multiplayer Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
  • 11:04, 29 April 2024 Shr0x talk contribs created page Gameplay::getFakeWantedLevel (Created page with "{{ClientsideJsFunction}} {{JSContainer| Returns the value that has been passed to Gameplay::setFakeWantedLevel ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getFakeWantedLevel(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 11:02, 29 April 2024 Shr0x talk contribs created page Gameplay::cancelOnscreenKeyboard (Created page with "{{ClientsideJsFunction}} {{JSContainer| Cancels on screen keyboard ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.cancelOnscreenKeyboard(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 11:01, 29 April 2024 Shr0x talk contribs created page Gameplay::getOnscreenKeyboardResult (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets the value that player has typed in screen keyboard input. ===Return value=== *''' {{RageType|string}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getOnscreenKeyboardResult(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 10:56, 29 April 2024 Shr0x talk contribs created page Gameplay::updateOnscreenKeyboard (Created page with "{{ClientsideJsFunction}} {{JSContainer| Updates the system keyboard, and returns its status. This should be called every frame until a non pending status is returned. ==Keyboard states== <pre> enum KEYBOARD_STATE { INVALID = -1, PENDING, SUCCESS, CANCELLED, FAILED, } </pre> ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.updateOnscreenKeyboard(); </syntaxhighlight> ==Example== <syntaxhighlight l...")
  • 10:50, 29 April 2024 Shr0x talk contribs created page Gameplay::getGravityLevel (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets current gravity level ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getGravityLevel(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const gravityLevel = mp.game.gameplay.getGravityLevel(); mp.console.logInfo(`Current gravity level is: ${gravityLevel}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside AP...")
  • 10:41, 29 April 2024 Shr0x talk contribs created page Gameplay::playTennisDiveAnim (Created page with "{{ClientsideJsFunction}} {{JSContainer| Plays tennis dive animation to the given ped ===Required Values=== *'''ped:''' {{RageType|number}} *'''direction:''' {{RageType|number}} (0 or 1) *'''diveHorizontal:''' {{RageType|float}} *'''diveVertical:''' {{RageType|float}} *'''playRate:''' {{RageType|float}} *'''slowBlend:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.playTennisDiveAn...")
  • 10:31, 29 April 2024 Shr0x talk contribs created page Gameplay::getTennisSwingAnimComplete (Created page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Values=== *'''ped:''' {{RageType|number}} ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getTennisSwingAnimComplete(ped); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 10:31, 29 April 2024 Shr0x talk contribs created page Gameplay::playTennisSwingAnim (Created page with "{{ClientsideJsFunction}} {{JSContainer| Plays tennis swing animation. ===Required Values=== *'''ped:''' {{RageType|number}} *'''animDict:''' {{RageType|string}} *'''animName:''' {{RageType|string}} *'''startPhase:''' {{RageType|float}} *'''playRate:''' {{RageType|float}} *'''slowBlend:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.playTennisSwingAnim(ped, animDict, animName, startP...")
  • 10:27, 29 April 2024 Shr0x talk contribs created page Gameplay::isTennisMode (Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks whether tennis mode is enabled for given handle. ===Required Values=== *'''ped:''' {{RageType|number}} ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.isTennisMode(ped); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const tennisMode = mp.game.gameplay.isTennisMode(mp.players.local.handle); mp.console.logInfo(`Tennis mode is ${tennisMode...")
  • 10:25, 29 April 2024 Shr0x talk contribs created page Gameplay::enableTennisMode (Created page with "{{ClientsideJsFunction}} {{JSContainer| Enables tennis changes for a ped ===Required Values=== *'''ped:''' {{RageType|number}} *'''enable:''' {{RageType|boolean}} *'''femaleClipset:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.enableTennisMode(ped, enable, femaleClipset); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.gameplay.enableTennisMode(mp.playe...")
  • 10:16, 29 April 2024 Shr0x talk contribs created page Gameplay::getGroundZAndNormalFor3DCoord (Created page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Values=== *'''x:''' {{RageType|float}} *'''y:''' {{RageType|float}} *'''z:''' {{RageType|float}} ===Return value=== *{ groundZ: number; normal: Vector3; result: boolean; } ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getGroundZAndNormalFor3DCoord(x, y, z); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const {x, y, z} = mp.players.local.position; const {groundZ, normal, result}...")
  • 10:07, 29 April 2024 Shr0x talk contribs created page Gameplay::getRandomIntInRange2 (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets a random number (mwc rng) from the range passed in. ===Required Values=== *'''min:''' {{RageType|number}} *'''max:''' {{RageType|number}} ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getRandomIntInRange2(min, max); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const randomNumber = mp.game.gameplay.getRandomIntInRange2(0, 9999); mp.conso...")
  • 09:52, 29 April 2024 Shr0x talk contribs created page Gameplay::getFrameTime (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets the time since the last frame ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getFrameTime(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const frameTime = mp.game.gameplay.getFrameTime(); mp.console.logInfo(`Frame time is ${frameTime}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TO...")
  • 09:50, 29 April 2024 Shr0x talk contribs created page Gameplay::getGameTimer (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets the current game timer in ms (game time starts when the game begins). ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getGameTimer(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const gameTime = mp.game.gameplay.getGameTimer(); mp.console.logInfo(`Game time is ${gameTime}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} C...")
  • 09:49, 29 April 2024 Shr0x talk contribs created page Gameplay::getCloudHatOpacity (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets cloud hat opacity (alpha). ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getCloudHatOpacity(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const cloudAlpha = mp.game.gameplay.getCloudHatOpacity(); mp.console.logInfo(`Cloud alpha is ${cloudAlpha}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API [...")
  • 09:46, 29 April 2024 Shr0x talk contribs created page Gameplay::setCloudHatOpacity (Created page with "{{ClientsideJsFunction}} {{JSContainer| Set cloud hat opacity (alpha), value must be between 0.0 and 1.0. ===Required Params=== *'''value:''' {{RageType|float}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.setCloudHatOpacity(value); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:...")
  • 09:43, 29 April 2024 Shr0x talk contribs created page Gameplay::clearCloudHat (Created page with "{{ClientsideJsFunction}} {{JSContainer| Unloads all cloud hats. ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.clearCloudHat(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 09:41, 29 April 2024 Shr0x talk contribs created page Gameplay::unloadCloudHat (Created page with "{{ClientsideJsFunction}} {{JSContainer| Unload a cloud hat from memory. ===Required Params=== *'''cloudHatName:''' {{RageType|string}} *'''transitionTime:''' {{RageType|number}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.unloadCloudHat(cloudHatName, transitionTime); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} ...")
  • 09:39, 29 April 2024 Shr0x talk contribs created page Gameplay::loadCloudHat (Created page with "{{ClientsideJsFunction}} {{JSContainer| Force load cloud hat. ===Required Params=== *'''cloudHatName:''' {{RageType|string}} *'''transitionTime:''' {{RageType|number}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.loadCloudHat(cloudHatName, transitionTime); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Cli...")
  • 09:38, 29 April 2024 Shr0x talk contribs created page Gameplay::preloadCloudHat (Created page with "{{ClientsideJsFunction}} {{JSContainer| Preload a cloud hat into memory. ===Required Params=== *'''cloudHatName:''' {{RageType|string}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.preloadCloudHat(cloudHatName); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 09:36, 29 April 2024 Shr0x talk contribs created page Gameplay::forceLightningFlash (Created page with "{{ClientsideJsFunction}} {{JSContainer| Forces a lighting flash to happen. ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.forceLightningFlash(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.gameplay.forceLightningFlash(); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 09:34, 29 April 2024 Shr0x talk contribs created page Gameplay::getSnowLevel (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets snow level. ===Return value=== *''' {{RageType|Float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getSnowLevel(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const snowLevel = mp.game.gameplay.getSnowLevel(); mp.console.logInfo(`Current snow level is ${snowLevel}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 09:33, 29 April 2024 Shr0x talk contribs created page Gameplay::setSnowLevel (Created page with "{{ClientsideJsFunction}} {{JSContainer| Sets snow level, level must be between 0.0 and 1.0 ===Required Params=== *'''level:''' {{RageType|float}} ===Return value=== *''' {{RageType|Vector3}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.setSnowLevel(level); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.gameplay.setSnowLevel(0.5); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API...")
  • 09:32, 29 April 2024 Shr0x talk contribs created page Gameplay::getRainLevel (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets rain level. ===Return value=== *''' {{RageType|Float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getRainLevel(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const rainLevel = mp.game.gameplay.getRainLevel(); mp.console.logInfo(`Current rain level is ${rainLevel}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 09:31, 29 April 2024 Shr0x talk contribs created page Gameplay::setRainLevel (Created page with "{{ClientsideJsFunction}} {{JSContainer| Sets rain level, level must be between 0.0 and 1.0 ===Required Params=== *'''level:''' {{RageType|float}} ===Return value=== *''' {{RageType|Vector3}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.setRainLevel(level); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.gameplay.setRainLevel(0.5); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API...")
  • 09:29, 29 April 2024 Shr0x talk contribs created page Gameplay::getWindDirection (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets wind direction ===Return value=== *''' {{RageType|Vector3}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getWindDirection(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const windDirection = mp.game.gameplay.getWindDirection(); mp.console.logInfo(`Current wind direction is x: ${windDirection.x} y: ${windDirection.y} z: ${windDirection.z}`); </syntaxhighlight> }} ==See also== {{G...")
  • 09:27, 29 April 2024 Shr0x talk contribs created page Gameplay::getWindSpeed (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets current wind speed ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getWindSpeed(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const windSpeed = mp.game.gameplay.getWindSpeed(); mp.console.logInfo(`Current wind speed is ${windSpeed}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO:...")
  • 09:26, 29 April 2024 Shr0x talk contribs created page Gameplay::clearOverrideWeather (Created page with "{{ClientsideJsFunction}} {{JSContainer| Stop overridding the global weather. ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.clearOverrideWeather(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.gameplay.clearOverrideWeather(); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 09:25, 29 April 2024 Shr0x talk contribs created page Gameplay::clearWeatherTypePersist (Created page with "{{ClientsideJsFunction}} {{JSContainer| Clears any persisting weather ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.clearWeatherTypePersist(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.gameplay.clearWeatherTypePersist(); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 09:24, 29 April 2024 Shr0x talk contribs created page Gameplay::setRandomWeatherType (Created page with "{{ClientsideJsFunction}} {{JSContainer| Sets a random weather ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.setRandomWeatherType(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //Set a random weather every 1 hour. setInterval(() => { mp.game.gameplay.setRandomWeatherType(); }, 60 * 60 * 1000) </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API...")
  • 09:12, 29 April 2024 Shr0x talk contribs created page Gameplay::setWeatherTypeOvertimePersist (Created page with "{{ClientsideJsFunction}} {{JSContainer| Sets the weather type over time. ===Required Params=== *'''weatherName:''' {{RageType|string}} //Weather names can be found at Weather *'''time:''' {{RageType|number}} //time in seconds ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.setWeatherTypeOvertimePersist(weatherName, time); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.gamepl...")
  • 09:06, 29 April 2024 Shr0x talk contribs created page Gameplay::hasResumedFromSuspend (Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks if have resumed from a suspend. ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.hasResumedFromSuspend(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 09:05, 29 April 2024 Shr0x talk contribs created page Gameplay::getRandomEventFlag (Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks if the player is currently on a random event. ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getRandomEventFlag(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const flag = mp.game.gameplay.getRandomEventFlag(); mp.console.logInfo(`Player ${flag ? 'is' : 'is not'} in a random event.`); </syntaxhighlight> }} ==See also== {{Gameplay_defin...")
  • 09:04, 29 April 2024 Shr0x talk contribs created page Gameplay::getMissionFlag (Created page with "{{ClientsideJsFunction}} {{JSContainer| ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getMissionFlag(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const flag = mp.game.gameplay.getMissionFlag(); mp.console.logInfo(`Mission flag is ${flag ? 'enabled' : 'disabled'}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API Category:TODO: Example")
  • 08:54, 29 April 2024 Shr0x talk contribs created page Template:Gameplay definition c (Created page with "*Gameplay Functions **Gameplay::getAllocatedStackSize **Gameplay::getNumberOfFreeStacksOfThisSize **Gameplay::getFreeStackSlotsCount **Gameplay::setRandomSeed **Gameplay::setTimeScale **Gameplay::setMissionFlag **Gameplay::getMissionFlag **Gameplay::setRandomEventFlag **Gameplay::getRandomEventFlag **Gameplay::getGlobalCharBuffer **Gameplay::hasResumedFromSuspend **Gameplay::getBaseElementMetadata **Gameplay::getPrevWeath...")
  • 09:08, 26 April 2024 Shr0x talk contribs created page Graphics::getLightsState (Created page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''lightid:''' {{RageType|Number}} ===Return value=== *''{{RageType|Boolean}}'' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.getLightsState(lightId); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.graphics.setLightsState(1, true); const lightState = mp.game.graphics.getLightsState(1); mp.console.logInfo(`Light id 1 state is ${lightState}`); </syntaxhighlight>...")
  • 09:03, 26 April 2024 Shr0x talk contribs created page Graphics::resetLightsState (Created page with "{{ClientsideJsFunction}} {{JSContainer| ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.resetLightsState(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.graphics.setLightsState(1, true); //reset lights state after 5 seconds. setTimeout(() => { mp.game.graphics.resetLightsState(); }, 5000); </syntaxhighlight> }} ==See also== {{Graphics_s_function_c}} Category:Clientside API")
  • 08:18, 25 April 2024 Shr0x talk contribs created page Weapon::canUseOnParachute (Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks whether given weapon can be used while parachuting. === Required Params === *'''handle''' {{RageType|number}} === Return Value === *{{RageType|boolean}} ==Syntax== <pre> mp.game.weapon.canUseOnParachute(handle); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const weapon = mp.players.local.weapon; const canUseOnParachute = mp.game.weapon.canUseOnParachute(weapon); mp.console.logInfo(`Players weap...")
  • 08:14, 25 April 2024 Shr0x talk contribs created page Weapon::getDamageType (Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks whether ped's current weapon flashlight is on or off. === Required Params === *'''handle''' {{RageType|number}} === Return Value === *'''type''' {{RageType|number}} === Damage Types === <pre> const damageTypes = [ "unknown", "none", "melee", "bullet", "rubber bullet", "explosive", "fire", "collision", "fall", "drown", "electric", "barbed wire", "fire extinguisher", "smoke", "water cannon", "tranquilizer"...")
  • 08:08, 25 April 2024 Shr0x talk contribs created page Weapon::isFlashLightOn (Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks whether ped's current weapon flashlight is on or off. === Required Params === *'''handle''' {{RageType|number}} === Return Value === *'''toggled''' {{RageType|boolean}} ==Syntax== <pre> mp.game.weapon.isFlashLightOn(handle); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const weaponSilenced = mp.game.weapon.isFlashLightOn(mp.players.local.handle); mp.console.logInfo(`Players weapon flashlight i...")
  • 08:06, 25 April 2024 Shr0x talk contribs created page Weapon::isPedCurrentSilenced (Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks whether ped's current weapon is silenced or not. === Required Params === *'''playerHandle''' {{RageType|number}} === Return Value === *'''silenced''' {{RageType|boolean}} ==Syntax== <pre> mp.game.weapon.isPedCurrentSilenced(playerHandle); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const weaponSilenced = mp.game.weapon.isPedCurrentSilenced(mp.players.local.handle); mp.console.logInfo(`Players...")
  • 07:46, 25 April 2024 Shr0x talk contribs created page Weapon::getPedTintIndex (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets given weapon tint index === Required Params === *'''handle''' {{RageType|number}} *'''weaponhash''' {{RageType|number}} ==Syntax== <pre> mp.game.weapon.getPedTintIndex(handle, weaponhash); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> mp.players.local.giveWeapon(mp.game.joaat("WEAPON_PISTOL"), 1000, true); mp.game.weapon.setPedTintIndex(mp.players.local.handle, mp.game.joaat("WEAPON_PISTOL"), 1);...")
  • 07:43, 25 April 2024 Shr0x talk contribs created page Weapon::setPedTintIndex (Created page with "{{ClientsideJsFunction}} {{JSContainer| Set given weapon tint index === Required Params === *'''handle''' {{RageType|number}} *'''weaponhash''' {{RageType|number}} *'''tint''' {{RageType|number}} ==Syntax== <pre> mp.game.weapon.setPedTintIndex(handle, weaponhash, tint); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> mp.players.local.giveWeapon(mp.game.joaat("WEAPON_PISTOL"), 1000, true); mp.game.weapon.setPedTintIndex(mp.players.local.handle,...")
  • 07:38, 25 April 2024 Shr0x talk contribs created page Weapon::giveLoadoutToPed (Created page with "{{ClientsideJsFunction}} {{JSContainer| Give the specified ped a set of weapons based on loadout hash. === Required Params === *'''handle''' {{RageType|number}} *'''hash''' {{RageType|number}} ==Loadouts== <pre> loadouts = [ "LOADOUT_DEFAULT", "LOADOUT_LOST", "LOADOUT_LOST_L1", "LOADOUT_LOST_L2", "LOADOUT_LOST_L3", "LOADOUT_MEXICAN", "LOADOUT_MEXICAN_L1", "LOADOUT_MEXICAN_L2", "LOADOUT_MEXICAN_L3", "LOADOUT_FAMILY", "LOADOUT_A...")
  • 04:36, 25 April 2024 Shr0x talk contribs created page Ui::getCurrentAreaNameLabel (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets area name label based on current player position. === Return Value === *'''label''' {{RageType|string}} ==Syntax== <pre> mp.game.hud.getCurrentAreaNameLabel(); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const areaNameLabel = mp.game.hud.getCurrentAreaNameLabel(); //eg output: 'WVINE' mp.console.logWarning(`Area name label is: ${areaNameLabel}`); </syntaxhighlight> }} }} ==See also== {{Ui_s_funct...")
  • 04:34, 25 April 2024 Shr0x talk contribs created page Ui::getCurrentStreetNameHash (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets street name hash based on current player position. === Return Value === *'''hash''' {{RageType|number}} ==Syntax== <pre> mp.game.hud.getCurrentStreetNameHash(); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const streetNameHash = mp.game.hud.getCurrentStreetNameHash(); mp.console.logWarning(`Street name hash is: ${streetName}`) </syntaxhighlight> }} }} ==See also== {{Ui_s_function_c}} Category:C...")
  • 04:33, 25 April 2024 Shr0x talk contribs created page Ui::getCurrentStreetNameString (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets street name based on current player position. === Return Value === *'''streetname''' {{RageType|string}} ==Syntax== <pre> mp.game.hud.getCurrentStreetNameString(); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const streetName = mp.game.hud.getCurrentStreetNameString(); mp.console.logWarning(`Street name is: ${streetName}`) </syntaxhighlight> }} }} ==See also== {{Ui_s_function_c}} Category:Clien...")
  • 04:32, 25 April 2024 Shr0x talk contribs created page Ui::getCurrentAreaNameString (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets area name based on current player position. === Return Value === *'''areaname''' {{RageType|string}} ==Syntax== <pre> mp.game.hud.getCurrentAreaNameString(); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const areaName = mp.game.hud.getCurrentAreaNameString(); mp.console.logWarning(`Area name is: ${areaNameHash}`) </syntaxhighlight> }} }} ==See also== {{Ui_s_function_c}} [[Category:Clientside API]...")
  • 04:31, 25 April 2024 Shr0x talk contribs created page Ui::getCurrentAreaNameHash (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets area name hash based on current player position. === Return Value === *'''hash''' {{RageType|number}} ==Syntax== <pre> mp.game.hud.getCurrentAreaNameHash(); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const areaNameHash = mp.game.hud.getCurrentAreaNameHash(); mp.console.logWarning(`Area name hash: ${areaNameHash}`) </syntaxhighlight> }} }} ==See also== {{Ui_s_function_c}} Category:Clientside A...")
  • 04:26, 25 April 2024 Shr0x talk contribs created page Ui::applyShowHudComponentsThisFrameBatch (Created page with "{{ClientsideJsFunction}} {{JSContainer| Hides, shows, or resets component based on https://wiki.rage.mp/index.php?title=Ui::setShowHudComponentsThisFrameBatch setShowHudComponentsThisFrameBatch === Return Value === *'''void''' {{RageType|void}} ==Syntax== <pre> mp.game.hud.applyShowHudComponentsThisFrameBatch(); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const hudComponents = { HUD_WANTED_STARS: 1, HUD_WEAPON_ICON: 2, HUD_...")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)