User contributions for Shr0x

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

23 April 2024

  • 10:0110:01, 23 April 2024 diff hist +642 N Streaming::streamvolDeleteCreated page with "__NOTOC__ {{ClientsideJsFunction}} {{JSContainer| === Required Arguments === *'''streamvol''' {{RageType|Handle}} === Return Value === *'''void''' {{RageType|Void}} ==Syntax== <pre> mp.game.streaming.streamvolDelete(streamvol); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const {x, y, z} = mp.players.local.position; const streamvol = mp.game.streaming.streamvolCreateSphere(x, y, z, 1, 1); mp.game.streaming.streamvolDelete(streamvol); //del..." current
  • 09:5909:59, 23 April 2024 diff hist +724 N Streaming::streamvolHasLoadedCreated page with "__NOTOC__ {{ClientsideJsFunction}} {{JSContainer| Returns true if the stream volume has loaded, false if not === Required Arguments === *'''streamvol''' {{RageType|Handle}} === Return Value === *'''boolean''' {{RageType|Boolean}} ==Syntax== <pre> mp.game.streaming.streamvolHasLoaded(streamvol); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const {x, y, z} = mp.players.local.position; const streamvol = mp.game.streaming.streamvolCreateSphere..." current
  • 09:5709:57, 23 April 2024 diff hist +739 N Streaming::streamvolIsValidCreated page with "__NOTOC__ {{ClientsideJsFunction}} {{JSContainer| Returns true if the stream volume handle is valid and active, false if its not. === Required Arguments === *'''streamvol''' {{RageType|Handle}} === Return Value === *'''boolean''' {{RageType|Boolean}} ==Syntax== <pre> mp.game.streaming.streamvolIsValid(streamvol); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const {x, y, z} = mp.players.local.position; const streamvol = mp.game.streaming.st..." current
  • 09:5509:55, 23 April 2024 diff hist +887 N Streaming::streamvolCreateSphereCreated page with "__NOTOC__ {{ClientsideJsFunction}} {{JSContainer| Creates a new spherical streaming volume for the specified asset types === Required Arguments === *'''x:''' {{RageType|Float}} *'''y:''' {{RageType|Float}} *'''z:''' {{RageType|Float}} *'''flag:''' {{RageType|Number}} *'''lodflag''' {{RageType|Number}} === Return Value === *'''handle''' {{RageType|Handle}} //returns -1 if invalid ==Syntax== <pre> mp.game.streaming.streamvolCreateSphere(x, y, z, flag, lodFlag); </pre> =..." current
  • 09:1709:17, 23 April 2024 diff hist +432 N Streaming::getAllModelHashesCreated page with "__NOTOC__ {{ClientsideJsFunction}} {{JSContainer| === Required Arguments === *'''p1:''' {{RageType|Number}} ==Syntax== <pre> mp.game.streaming.getAllModelHashes(p1); </pre> ==Example== {{ClientsideCode| <pre> const vehicleList = mp.game.streaming.getAllModelHashes(5); //return a number array of all vehicle hashes </pre> }} }} ==See also== {{Streaming_functions_c}} Category:Clientside API Category:Client-side Function" current
  • 09:0609:06, 23 April 2024 diff hist +578 N Player::getEntityIsFreeAimingAtRawCreated page with "{{JSContainer| ==Syntax== <syntaxhighlight lang="javascript">mp.game.player.getEntityIsFreeAimingAtRaw();</syntaxhighlight> ===Return value=== *'''handle or undefined''' ==Example== <syntaxhighlight lang="javascript"> const targetEntity = mp.game.player.getEntityIsFreeAimingAtRaw(); if (targetEntity) { const ped = mp.peds.atHandle(targetEntity); if (ped && mp.peds.exists(ped)) { mp.gui.chat.push(`You are aiming at ped id ${ped.id}`); } } </syntaxhi..." current
  • 08:5808:58, 23 April 2024 diff hist +57 Events::removeNo edit summary current
  • 08:5608:56, 23 April 2024 diff hist +366 Events::removeNo edit summary
  • 08:4908:49, 23 April 2024 diff hist +385 Camera::stopShakingNo edit summary current
  • 08:3908:39, 23 April 2024 diff hist +21 Graphics::addDecalNo edit summary current
  • 08:3908:39, 23 April 2024 diff hist −207 Graphics::addDecalNo edit summary
  • 08:2408:24, 23 April 2024 diff hist −947 Using DLC Packs with Custom TexturesNo edit summary

22 April 2024

  • 20:5020:50, 22 April 2024 diff hist +115 Player::isFreeAimingAtEntityNo edit summary current
  • 20:4820:48, 22 April 2024 diff hist 0 Cam::setGameplayCoordHintNo edit summary current
  • 20:4420:44, 22 April 2024 diff hist +2 Player::taskPutDirectlyIntoMeleecorrected method name current
  • 20:4320:43, 22 April 2024 diff hist +69 Cam::setGameplayCoordHintNo edit summary
  • 20:3620:36, 22 April 2024 diff hist +158 Player::taskPutDirectlyIntoMeleeNo edit summary
  • 19:0319:03, 22 April 2024 diff hist +135 Using TypescriptNo edit summary
  • 18:4418:44, 22 April 2024 diff hist +249 Using TypescriptUpdates
  • 18:3618:36, 22 April 2024 diff hist +322 Using TypescriptNo edit summary
  • 17:3117:31, 22 April 2024 diff hist +426 N Graphics::setLightsStateCreated page with "{{JSContainer| === Required Arguments === *'''lightid:''' Number(0-16) *'''disable:''' Boolean ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.setLightsState(lightid, disable); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.graphics.setLightsState(1, true); </syntaxhighlight> }} ==See also== {{Graphics_s_function_c}} Category:Clientside API" current
  • 17:2717:27, 22 April 2024 diff hist +621 N Graphics::createWorldTextureSwapCreated page with "{{JSContainer| === Required Arguments === *'''oldTextureDict:''' string *'''oldTextureName:''' string *'''newTextureDict:''' string *'''newTextureName:''' string ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.createWorldTextureSwap(oldTextureDict, oldTextureName, newTextureDict, newTextureName); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.graphics.createWorldTextureSwap('hw1_16_build', 'h..." current
  • 17:2617:26, 22 April 2024 diff hist +608 N Graphics::removeWorldTextureSwapCreated page with "{{JSContainer| === Required Arguments === *'''oldTextureDict:''' string *'''oldTextureName:''' string ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.removeWorldTextureSwap(oldTextureDict, oldTextureName); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.graphics.createWorldTextureSwap('hw1_16_build', 'hw1_16_tpage_ro_01', 'gta5_bill', 'prop_billboard_02_dm'); mp.game.graphics.removeWorldTextur..." current
  • 17:2417:24, 22 April 2024 diff hist 0 Graphics::resetWorldTextureSwapsfix typo current
  • 17:2417:24, 22 April 2024 diff hist +394 N Graphics::resetWorldTextureSwapsCreated page with "{{JSContainer| This function will reset all texture swaps in the world ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.resetWorldTextureSwaps(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.grapgics.resetWorldTextureSwaps(); </syntaxhighlight> }} ==See also== {{Graphics_s_function_c}} Category:Clientside API"
  • 17:2317:23, 22 April 2024 diff hist +350 N Graphics::registerTextFontIdCreated page with "{{JSContainer| === Required Arguments === *'''name:''' string ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.registerTextFontId(name); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Graphics_s_function_c}} Category:Clientside API"
  • 17:2017:20, 22 April 2024 diff hist +711 N Vehicle::setGeneratesEngineShockingEventsCreated page with "{{JSContainer| === Required Arguments === *'''handle:''' Vehicle handle *'''enable:''' Boolean ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.vehicle.setGeneratesEngineShockingEvents(handle, enable); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.atRemoteId(0); //get vehicle with remote id 0 if (!vehicle || !mp.vehicles.exists(vehicle)) return; //if the vehicle don't exist we retu..." current
  • 17:1717:17, 22 April 2024 diff hist +768 N Vehicle::setPlanePropellersHealthCreated page with "{{JSContainer| === Required Arguments === *'''handle:''' Vehicle handle *'''health:''' number ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.vehicle.setPlanePropellersHealth(handle, health); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const plane = mp.vehicles.atRemoteId(0); //get vehicle with remote id 0 if (!plane || !mp.vehicles.exists(plane)) return; //if the vehicle don't exist we return here if (mp...." current
  • 17:1417:14, 22 April 2024 diff hist +686 N Vehicle::setDriftTyresEnabledCreated page with "{{JSContainer| === Required Arguments === *'''handle:''' Vehicle handle *'''enable:''' Boolean ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.vehicle.setDriftTyresEnabled(handle, enable); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.atRemoteId(0); //get vehicle with remote id 0 if (!vehicle || !mp.vehicles.exists(vehicle)) return; //if the vehicle don't exist we return here //Ve..." current
  • 17:1317:13, 22 April 2024 diff hist +415 N Vehicle::setRandomBoatsInMpCreated page with "{{JSContainer| === Required Arguments === *'''enable:''' Boolean ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.vehicle.setRandomBoatsInMp(enable); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.vehicle.setRandomBoatsInMp(true); </syntaxhighlight> }} ==See also== {{Vehicle_s_function_c}} Category:Clientside API Category:TODO: Example" current
  • 17:0817:08, 22 April 2024 diff hist +704 N Vehicle::setParachuteTextureVariationCreated page with "{{JSContainer| === Required Arguments === *'''handle:''' Vehicle handle *'''variation:''' Number ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.vehicle.setParachuteTextureVariation(handle, variation); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.atRemoteId(0); //get vehicle with remote id 0 if (!vehicle || !mp.vehicles.exists(vehicle)) return; //if the vehicle don't exist we ret..." current
  • 17:0617:06, 22 April 2024 diff hist +3 Vehicle::getDriftTyresEnabledfix return value current
  • 17:0617:06, 22 April 2024 diff hist +762 N Vehicle::getDriftTyresEnabledCreated page with "{{JSContainer| === Required Arguments === *'''handle:''' Vehicle handle ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.vehicle.getDriftTyresEnabled(handle); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.atRemoteId(0); //get vehicle with remote id 0 if (!vehicle || !mp.vehicles.exists(vehicle)) return; //if the vehicle don't exist we return here //Vehicle is valid, processing the..."
  • 17:0217:02, 22 April 2024 diff hist +474 N Vehicle::setExperimentalHornSyncEnabledCreated page with "{{JSContainer| === Required Arguments === *'''enable:''' Boolean ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.vehicle.setExperimentalHornSyncEnabled(enable); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.vehicle.setExperimentalHornSyncEnabled(false); //disable experimental horn sync. </syntaxhighlight> }} ==See also== {{Vehicle_s_function_c}} Category:Clientside API Category:TODO: Example" current
  • 17:0117:01, 22 April 2024 diff hist +492 N Vehicle::setExperimentalAttachmentSyncEnabledCreated page with "{{JSContainer| === Required Arguments === *'''enable:''' Boolean ===Return value=== *'''void''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.vehicle.setExperimentalAttachmentSyncEnabled(enable); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.vehicle.setExperimentalAttachmentSyncEnabled(false); //disable experimental attachment sync. </syntaxhighlight> }} ==See also== {{Vehicle_s_function_c}} Category:Clientside API Categor..." current

31 March 2024

30 March 2024

16 March 2024

9 March 2024

4 March 2024

  • 18:4718:47, 4 March 2024 diff hist +1,119 Player::taskHeliMissionNo edit summary current
  • 17:4317:43, 4 March 2024 diff hist +317 N Events::bindedCreated page with "__TOC__ {{SharedFunctionJS}} {{JSContainer| ===Returned value=== *{{RageType|An array of event names and handlers}} ===Example=== <pre> mp.events.add('myevent', () => { //code here }); console.log(mp.events.binded); //Output [{ 'myevent': [Function (anonymous)] }] </pre> }} ==See Also== {{Event_functions}}" current

2 March 2024

1 March 2024

  • 10:5610:56, 1 March 2024 diff hist +433 N Player::setCanLosePropsOnDamageCreated page with " {{ClientsideJsEvent}} Enable or disable the ability for entity to drop props when they're damaged. {{JSContainer| {{Parameters}} * '''enable''': {{RageType|boolean}} * '''p0''': {{RageType|Number}} {{Example}} <syntaxhighlight lang="javascript" style="width: 98%; background-color: #E4F1FE;"> mp.players.local.setCanLosePropsOnDamage(false, 0); </syntaxhighlight> }} ==See also== {{Player_function_c}} Category:Clientside API" current

30 November 2022

  • 16:2916:29, 30 November 2022 diff hist +601 N ProjectileCreated page with " {{ClientsideJsEvent}} {{JSContainer| {{Parameters}} * '''sourcePlayer''': {{RageType|Player}} * '''weaponHash''': {{RageType|Number}} * '''ammoType''': {{RageType|Number}}..." current
  • 16:2016:20, 30 November 2022 diff hist +489 N ExplosionCreated page with " {{ClientsideJsEvent}} {{JSContainer| {{Parameters}} * '''sourcePlayer''': {{RageType|Player}} * '''type''': {{RageType|Number}} * '''position''': {{RageType|Vector3}} {{Ex..." current
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)