Category:TODO: Example
Jump to navigation
Jump to search
(previous page) (next page)
These are the pages that requires Examples.
If you are able to put a working example, then we will be very thankful for your contribution.
Requirements
- Should be fully clear and working example
- Should be in a code block.
- Client-side scripts must be in red 'client-side' containers and server-side scripts must be in blue 'server-side' containers.
Example:
That's example will just call server side event, from client, if player screen size not a 1280x1024.
Client-Side
let checkResolution = () => {
let res = mp.game.graphics.getScreenActiveResolution(x, y);
if (!((res.x == 1280) && (res.y == 1024))) {
mp.events.callRemote("kickMeImBad", res.x, res.y);
};
};
checkResolution();
Server-Side
let blahBlah = (player, sx, sy) => {
console.log(`${player.name} bad boy :c, his screen size ${sx}x${sy}`);
player.kick();
};
mp.events.add("kickMeImBad", blahBlah);- Description for the code block you provided.
When you finish your example, Don't forget to remove the [[Category:TODO: Example]]. We thank you for your contribution.
Pages in category "TODO: Example"
The following 200 pages are in this category, out of 2,468 total.
(previous page) (next page)G
- Gameplay::startSaveArray
- Gameplay::startSaveData
- Gameplay::startSaveStruct
- Gameplay::stringToInt
- Gameplay::tan
- Gameplay::terminateAllScriptsWithThisName
- Gameplay::usingMissionCreator
- Graphics::addDecal
- Graphics::addPetrolDecal
- Graphics::beginTextComponent
- Graphics::callScaleformMovieFunctionFloatParams
- Graphics::callScaleformMovieFunctionMixedParams
- Graphics::callScaleformMovieFunctionStringParams
- Graphics::callScaleformMovieMethod
- Graphics::destroyTrackedPoint
- Graphics::disableVehicleDistantlights
- Graphics::doesParticleFxLoopedExist
- Graphics::drawBox
- Graphics::drawDebugBox
- Graphics::drawDebugCross
- Graphics::drawDebugLine
- Graphics::drawDebugLineWithTwoColours
- Graphics::drawDebugSphere
- Graphics::drawDebugText
- Graphics::drawDebugText2d
- Graphics::drawLightWithRange
- Graphics::drawLightWithRangeAndShadow
- Graphics::drawLine
- Graphics::drawPoly
- Graphics::drawRect
- Graphics::drawScaleformMovie
- Graphics::drawScaleformMovie3d
- Graphics::drawScaleformMovie3dNonAdditive
- Graphics::drawScaleformMovieFullscreen
- Graphics::drawScaleformMovieFullscreenMasked
- Graphics::drawSpotLight
- Graphics::drawSpotLightWithShadow
- Graphics::drawSprite
- Graphics::drawTvChannel
- Graphics::enableAlienBloodVfx
- Graphics::enableClownBloodVfx
- Graphics::enableMovieSubtitles
- Graphics::fadeDecalsInRange
- Graphics::getDecalWashLevel
- Graphics::getScreenActiveResolution
- Graphics::getScreenAspectRatio
- Graphics::getScreenEffectIsActive
- Graphics::getScreenResolution
- Graphics::getTextureResolution
- Graphics::hasHudScaleformLoaded
- Graphics::hasNamedScaleformMovieLoaded
- Graphics::hasScaleformContainerMovieLoadedIntoParent
- Graphics::hasScaleformMovieLoaded
- Graphics::hasStreamedTextureDictLoaded
- Graphics::isDecalAlive
- Graphics::isTrackedPointVisible
- Graphics::loadMovieMeshSet
- Graphics::loadTvChannel
- Graphics::moveVehicleDecals
- Graphics::pushScaleformMovieFunction
- Graphics::pushScaleformMovieFunctionFromHudComponent
- Graphics::pushScaleformMovieFunctionN
- Graphics::pushScaleformMovieFunctionParameterBool
- Graphics::pushScaleformMovieFunctionParameterFloat
- Graphics::pushScaleformMovieFunctionParameterInt
- Graphics::pushScaleformMovieFunctionParameterString
- Graphics::releaseMovieMeshSet
- Graphics::removeDecal
- Graphics::removeDecalsFromObject
- Graphics::removeDecalsFromObjectFacing
- Graphics::removeDecalsInRange
- Graphics::removeParticleFx
- Graphics::removeParticleFxInRange
- Graphics::requestHudScaleform
- Graphics::requestScaleformMovie
- Graphics::requestScaleformMovie3
- Graphics::requestScaleformMovieInstance
- Graphics::requestStreamedTextureDict
- Graphics::screen2dToWorld3d
- Graphics::set2dLayer
- Graphics::setBlackout
- Graphics::setDebugLinesAndSpheresDrawingActive
- Graphics::setDrawOrigin
- Graphics::setFarShadowsSuppressed
- Graphics::setFlash
- Graphics::setForcePedFootstepsTracks
- Graphics::setForceVehicleTrails
- Graphics::setFrozenRenderingDisabled
- Graphics::setNightvision
- Graphics::setNoiseoveride
- Graphics::setNoisinessoveride
- Graphics::setParticleFxBloodScale
- Graphics::setParticleFxCamInsideNonplayerVehicle
- Graphics::setParticleFxCamInsideVehicle
- Graphics::setParticleFxLoopedAlpha
- Graphics::setParticleFxLoopedColour
- Graphics::setParticleFxLoopedEvolution
- Graphics::setParticleFxLoopedOffsets
- Graphics::setParticleFxLoopedRange
- Graphics::setParticleFxLoopedScale
- Graphics::setParticleFxNonLoopedAlpha
- Graphics::setParticleFxNonLoopedColour
- Graphics::setParticleFxShootoutBoat
- Graphics::setPtfxAssetNextCall
- Graphics::setPtfxAssetOldToNew
- Graphics::setScaleformMovieAsNoLongerNeeded
- Graphics::setScaleformMovieToUseSystemTime
- Graphics::setScreenDrawPosition
- Graphics::setSeethrough
- Graphics::setStreamedTextureDictAsNoLongerNeeded
- Graphics::setTimecycleModifier
- Graphics::setTimecycleModifierStrength
- Graphics::setTrackedPointInfo
- Graphics::setTransitionTimecycleModifier
- Graphics::setTvAudioFrontend
- Graphics::setTvChannel
- Graphics::setTvVolume
- Graphics::sittingTv
- Graphics::startParticleFxLoopedAtCoord
- Graphics::startParticleFxLoopedOnEntity
- Graphics::startParticleFxLoopedOnEntity2
- Graphics::startParticleFxLoopedOnEntityBone
- Graphics::startParticleFxLoopedOnEntityBone2
- Graphics::startParticleFxLoopedOnPedBone
- Graphics::startParticleFxNonLoopedAtCoord
- Graphics::startParticleFxNonLoopedAtCoord2
- Graphics::startParticleFxNonLoopedOnEntity
- Graphics::startParticleFxNonLoopedOnEntity2
- Graphics::startParticleFxNonLoopedOnPedBone
- Graphics::startParticleFxNonLoopedOnPedBone2
- Graphics::startScreenEffect
- Graphics::stopParticleFxLooped
- Graphics::stopScreenEffect
- Graphics::transitionFromBlurred
- Graphics::transitionToBlurred
- Graphics::washDecalsInRange
- Graphics::world3dToScreen2d
I
- Interior::addPickupToInteriorRoomByName
- Interior::areCoordsCollidingWithExterior
- Interior::capInterior
- Interior::disableInterior
- Interior::disableInteriorProp
- Interior::enableInteriorProp
- Interior::getInteriorAtCoords
- Interior::getInteriorAtCoordsWithType
- Interior::getInteriorFromCollision
- Interior::getInteriorGroupId
- Interior::getOffsetFromInteriorInWorldCoords
- Interior::hideMapObjectThisFrame
- Interior::isInteriorCapped
- Interior::isInteriorDisabled
- Interior::isInteriorPropEnabled
- Interior::isInteriorReady
- Interior::isValidInterior
- Interior::refreshInterior
- Interior::unkGetInteriorAtCoords
- Interior::unpinInterior
- Itemset::addToItemset
- Itemset::cleanItemset
- Itemset::createItemset
- Itemset::destroyItemset
- Itemset::getIndexedItemInItemset
- Itemset::getItemsetSize
- Itemset::isInItemset
- Itemset::isItemsetValid
- Itemset::removeFromItemset
K
M
N
- Nametags.enabled
- Networkcash::hasItemBeenUnlocked
- Networkcash::networkBuyAirstrike
- Networkcash::networkBuyBounty
- Networkcash::networkBuyHealthcare
- Networkcash::networkBuyHeliStrike
- Networkcash::networkBuyItem
- Networkcash::networkBuyProperty
- Networkcash::networkCanBet
- Networkcash::networkCanReceivePlayerCash
- Networkcash::networkDeleteCharacter
- Networkcash::networkEarnFromBag
- Networkcash::networkEarnFromBetting
- Networkcash::networkEarnFromBounty
- Networkcash::networkEarnFromCrateDrop
- Networkcash::networkEarnFromHoldups
- Networkcash::networkEarnFromImportExport
- Networkcash::networkEarnFromJob
- Networkcash::networkEarnFromPickup
- Networkcash::networkEarnFromProperty
- Networkcash::networkEarnFromRockstar
- Networkcash::networkEarnFromVehicle
- Networkcash::networkGivePlayerJobshareCash
- Networkcash::networkInitializeCash
- Networkcash::networkReceivePlayerJobshareCash
- Networkcash::networkRefundCash