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)E
- Entity::hasCollidedWithAnything
- Entity::hasCollisionLoadedAround
- Entity::isAMission
- Entity::isAnEntity
- Entity::isAnObject
- Entity::isAPed
- Entity::isAt
- Entity::isAtCoord
- Entity::isAttached
- Entity::isAttachedTo
- Entity::isAttachedToAnyObject
- Entity::isAttachedToAnyPed
- Entity::isAttachedToAnyVehicle
- Entity::isAVehicle
- Entity::isCollisonDisabled
- Entity::isDead
- Entity::isInAir
- Entity::isInAngledArea
- Entity::isInArea
- Entity::isInWater
- Entity::isInZone
- Entity::isOccluded
- Entity::isOnScreen
- Entity::isPlayingAnim
- Entity::isStatic
- Entity::isTouching
- Entity::isTouchingModel
- Entity::isUpright
- Entity::isUpsidedown
- Entity::isVisible
- Entity::isVisibleToScript
- Entity::isWaitingForWorldCollision
- Entity::playAnim
- Entity::playSynchronizedAnim
- Entity::playSynchronizedMapEntityAnim
- Entity::processAttachments
- Entity::removeForcedObject
- Entity::removeModelHide
- Entity::removeModelSwap
- Entity::resetAlpha
- Entity::setAlwaysPrerender
- Entity::setAnimCurrentTime
- Entity::setAnimSpeed
- Entity::setAsMission
- Entity::setCanBeDamaged
- Entity::setCanBeDamagedByRelationshipGroup
- Entity::setCanBeTargetedWithoutLos
- Entity::setCollision
- Entity::setCoords
- Entity::setCoords2
- Entity::setCoordsNoOffset
- Entity::setDynamic
- Entity::setHasGravity
- Entity::setHeading
- Entity::setHealth
- Entity::setInvincible
- Entity::setIsTargetPriority
- Entity::setLights
- Entity::setLoadCollisionFlag
- Entity::setLodDist
- Entity::setMaxHealth
- Entity::setMotionBlur
- Entity::setObjectAsNoLongerNeeded
- Entity::setOnlyDamagedByPlayer
- Entity::setOnlyDamagedByRelationshipGroup
- Entity::setProofs
- Entity::setQuaternion
- Entity::setRecordsCollisions
- Entity::setRenderScorched
- Entity::setRotation
- Entity::setTrafficlightOverride
- Entity::setVisible
- Entity::stopAnim
- Entity::stopSynchronizedAnim
- Entity::stopSynchronizedMapEntityAnim
- Entity::wouldEntityBeOccluded
F
G
- Gameplay::absf
- Gameplay::absi
- Gameplay::acos
- Gameplay::addHospitalRestart
- Gameplay::addPoliceRestart
- Gameplay::addStuntJump
- Gameplay::addStuntJumpAngled
- Gameplay::areStringsEqual
- Gameplay::asin
- Gameplay::atan
- Gameplay::atan2
- Gameplay::beginReplayStats
- Gameplay::clearAngledAreaOfVehicles
- Gameplay::clearArea
- Gameplay::clearAreaOfCops
- Gameplay::clearAreaOfEverything
- Gameplay::clearAreaOfObjects
- Gameplay::clearAreaOfPeds
- Gameplay::clearAreaOfProjectiles
- Gameplay::clearAreaOfVehicles
- Gameplay::clearBit
- Gameplay::compareStrings
- Gameplay::createIncident
- Gameplay::createIncidentWithEntity
- Gameplay::deleteIncident
- Gameplay::deleteStuntJump
- Gameplay::disableAutomaticRespawn
- Gameplay::disableHospitalRestart
- Gameplay::disablePoliceRestart
- Gameplay::disableStuntJumpSet
- Gameplay::displayOnscreenKeyboard
- Gameplay::enableDispatchService
- Gameplay::enableMpDlcMaps
- Gameplay::enableStuntJumpSet
- Gameplay::findSpawnPointInDirection
- Gameplay::getAngleBetween2dVectors
- Gameplay::getBitsInRange
- Gameplay::getDistanceBetweenCoords
- Gameplay::getFreeStackSlotsCount
- Gameplay::getGroundZFor3dCoord
- Gameplay::getHashKey
- Gameplay::getHeadingFromVector2d
- Gameplay::getModelDimensions
- Gameplay::getProfileSetting
- Gameplay::getRandomFloatInRange
- Gameplay::getRandomIntInRange
- Gameplay::getWeatherTypeTransition
- Gameplay::hasBulletImpactedInArea
- Gameplay::hasBulletImpactedInBox
- Gameplay::hasButtonCombinationJustBeenEntered
- Gameplay::hasCheatStringJustBeenEntered
- Gameplay::ignoreNextRestart
- Gameplay::isAreaOccupied
- Gameplay::isBitSet
- Gameplay::isBulletInAngledArea
- Gameplay::isBulletInArea
- Gameplay::isBulletInBox
- Gameplay::isIncidentValid
- Gameplay::isNextWeatherType
- Gameplay::isPointObscuredByAMissionEntity
- Gameplay::isPositionOccupied
- Gameplay::isPrevWeatherType
- Gameplay::isProjectileInArea
- Gameplay::isProjectileTypeInAngledArea
- Gameplay::isProjectileTypeInArea
- Gameplay::isSniperBulletInArea
- Gameplay::isStringNull
- Gameplay::isStringNullOrEmpty
- Gameplay::overrideSaveHouse
- Gameplay::registerBoolToSave
- Gameplay::registerEnumToSave
- Gameplay::registerFloatToSave
- Gameplay::registerIntToSave
- Gameplay::registerSaveHouse
- Gameplay::registerTextLabelToSave
- Gameplay::removeDispatchSpawnBlockingArea
- Gameplay::setBit
- Gameplay::setBitsInRange
- Gameplay::setCloudHatTransition
- Gameplay::setCreditsActive
- Gameplay::setDispatchIdealSpawnDistance
- Gameplay::setDispatchTimeBetweenSpawnAttempts
- Gameplay::setDispatchTimeBetweenSpawnAttemptsMultiplier
- Gameplay::setExplosiveAmmoThisFrame
- Gameplay::setExplosiveMeleeThisFrame
- Gameplay::setFadeInAfterDeathArrest
- Gameplay::setFadeInAfterLoad
- Gameplay::setFadeOutAfterArrest
- Gameplay::setFadeOutAfterDeath
- Gameplay::setFakeWantedLevel
- Gameplay::setFireAmmoThisFrame
- Gameplay::setGamePaused
- Gameplay::setMinigameInProgress
- Gameplay::setMissionFlag
- Gameplay::setOverrideWeather
- Gameplay::setRainFxIntensity
- Gameplay::setRandomEventFlag
- Gameplay::setRandomSeed
- Gameplay::setSaveHouse
- Gameplay::setSaveMenuActive
- Gameplay::setSuperJumpThisFrame
- Gameplay::setThisScriptCanBePaused
- Gameplay::setThisScriptCanRemoveBlipsCreatedByAnyScript
- Gameplay::setTimeScale
- Gameplay::setUnkMapFlag
- Gameplay::setWeatherTypeNow
- Gameplay::setWeatherTypeNowPersist
- Gameplay::setWeatherTypeOverTime
- Gameplay::setWeatherTypePersist
- Gameplay::setWeatherTypeTransition
- Gameplay::setWind
- Gameplay::setWindDirection
- Gameplay::setWindSpeed
- Gameplay::shootSingleBulletBetweenCoords