User contributions for Shr0x
23 April 2024
- 10:0110:01, 23 April 2024 diff hist +642 N Streaming::streamvolDelete Created 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::streamvolHasLoaded Created 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::streamvolIsValid Created 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::streamvolCreateSphere Created 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::getAllModelHashes Created 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::getEntityIsFreeAimingAtRaw Created 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::remove No edit summary current
- 08:5608:56, 23 April 2024 diff hist +366 Events::remove No edit summary
- 08:4908:49, 23 April 2024 diff hist +385 Camera::stopShaking No edit summary current
- 08:3908:39, 23 April 2024 diff hist +21 Graphics::addDecal No edit summary current
- 08:3908:39, 23 April 2024 diff hist −207 Graphics::addDecal No edit summary
- 08:2408:24, 23 April 2024 diff hist −947 Using DLC Packs with Custom Textures No edit summary
22 April 2024
- 20:5020:50, 22 April 2024 diff hist +115 Player::isFreeAimingAtEntity No edit summary current
- 20:4820:48, 22 April 2024 diff hist 0 Cam::setGameplayCoordHint No edit summary current
- 20:4420:44, 22 April 2024 diff hist +2 Player::taskPutDirectlyIntoMelee corrected method name current
- 20:4320:43, 22 April 2024 diff hist +69 Cam::setGameplayCoordHint No edit summary
- 20:3620:36, 22 April 2024 diff hist +158 Player::taskPutDirectlyIntoMelee No edit summary
- 19:0319:03, 22 April 2024 diff hist +135 Using Typescript No edit summary
- 18:4418:44, 22 April 2024 diff hist +249 Using Typescript Updates
- 18:3618:36, 22 April 2024 diff hist +322 Using Typescript No edit summary
- 17:3117:31, 22 April 2024 diff hist +426 N Graphics::setLightsState Created 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::createWorldTextureSwap Created 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::removeWorldTextureSwap Created 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::resetWorldTextureSwaps fix typo current
- 17:2417:24, 22 April 2024 diff hist +394 N Graphics::resetWorldTextureSwaps Created 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::registerTextFontId Created 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::setGeneratesEngineShockingEvents Created 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::setPlanePropellersHealth Created 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::setDriftTyresEnabled Created 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::setRandomBoatsInMp Created 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::setParachuteTextureVariation Created 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::getDriftTyresEnabled fix return value current
- 17:0617:06, 22 April 2024 diff hist +762 N Vehicle::getDriftTyresEnabled Created 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::setExperimentalHornSyncEnabled Created 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::setExperimentalAttachmentSyncEnabled Created 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
- 00:1300:13, 31 March 2024 diff hist 0 Entity::setNoCollision No edit summary
30 March 2024
- 23:5923:59, 30 March 2024 diff hist +21 Entity::setNoCollision No edit summary
16 March 2024
- 09:1309:13, 16 March 2024 diff hist +99 Player::specialAbilityChargeSmall No edit summary current
- 09:0309:03, 16 March 2024 diff hist +240 Ped::setPedToRagdollWithFall No edit summary
- 08:3508:35, 16 March 2024 diff hist +1 Pool::toArrayFast No edit summary current
- 08:3408:34, 16 March 2024 diff hist −211 Pool::toArrayFast No edit summary
9 March 2024
- 16:0416:04, 9 March 2024 diff hist +265 Entity::getRotation No edit summary
- 15:3015:30, 9 March 2024 diff hist −68 Entity::setRotation No edit summary
4 March 2024
- 18:4718:47, 4 March 2024 diff hist +1,119 Player::taskHeliMission No edit summary current
- 17:4317:43, 4 March 2024 diff hist +317 N Events::binded Created 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
- 21:0321:03, 2 March 2024 diff hist +224 Vehicle::setModColor1 No edit summary current
- 21:0021:00, 2 March 2024 diff hist +164 Vehicle::setModColor2 No edit summary current
1 March 2024
- 10:5610:56, 1 March 2024 diff hist +433 N Player::setCanLosePropsOnDamage Created 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 Projectile Created 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 Explosion Created page with " {{ClientsideJsEvent}} {{JSContainer| {{Parameters}} * '''sourcePlayer''': {{RageType|Player}} * '''type''': {{RageType|Number}} * '''position''': {{RageType|Vector3}} {{Ex..." current