Graphics::createCheckpoint
|
Contents
Creates a checkpoint. Returns the handle of the checkpoint.
Parameters:
* type - The type of checkpoint to create. See below for a list of checkpoint types.
* pos1 - The position of the checkpoint.
* pos2 - The position of the next checkpoint to point to.
* radius - The radius of the checkpoint.
* color - The color of the checkpoint.
* reserved - Special parameter, see below for details. Usually set to 0 in the scripts.
Checkpoint types:
0-4---------Cylinder: 1 arrow, 2 arrow, 3 arrows, CycleArrow, Checker
5-9---------Cylinder: 1 arrow, 2 arrow, 3 arrows, CycleArrow, Checker
10-14-------Ring: 1 arrow, 2 arrow, 3 arrows, CycleArrow, Checker
15-19-------1 arrow, 2 arrow, 3 arrows, CycleArrow, Checker
20-24-------Cylinder: 1 arrow, 2 arrow, 3 arrows, CycleArrow, Checker
25-29-------Cylinder: 1 arrow, 2 arrow, 3 arrows, CycleArrow, Checker
30-34-------Cylinder: 1 arrow, 2 arrow, 3 arrows, CycleArrow, Checker
35-38-------Ring: Airplane Up, Left, Right, UpsideDown
39----------?
40----------Ring: just a ring
41----------?
42-44-------Cylinder w/ number (uses 'reserved' parameter)
45-47-------Cylinder no arrow or number
If using type 42-44, reserved sets number / number and shape to display
0-99------------Just numbers (0-99)
100-109-----------------Arrow (0-9)
110-119------------Two arrows (0-9)
120-129----------Three arrows (0-9)
130-139----------------Circle (0-9)
140-149------------CycleArrow (0-9)
150-159----------------Circle (0-9)
160-169----Circle w/ pointer (0-9)
170-179-------Perforated ring (0-9)
180-189----------------Sphere (0-9)
Syntax
mp.game.graphics.createCheckpoint(type, posX1, posY1, posZ1, posX2, posY2, posZ2, radius, colorR, colorG, colorB, alpha, reserved);Required Arguments
- type: int
- posX1: float
- posY1: float
- posZ1: float
- posX2: float
- posY2: float
- posZ2: float
- radius: float
- colorR: int
- colorG: int
- colorB: int
- alpha: int
- reserved: int
Return value
- int
Example
This example creates a ring checkpoint with white color.
mp.game.graphics.createCheckpoint(35, -115, -848, 36, -115, -848, 39, 1, 255, 255, 255, 150,0);
// Vector3 doesn't workSee also
- mp.game.graphics.addDecal
- mp.game.graphics.addPetrolDecal
- mp.game.graphics.beginTextComponent
- mp.game.graphics.callScaleformMovieFunctionFloatParams
- mp.game.graphics.callScaleformMovieFunctionMixedParams
- mp.game.graphics.callScaleformMovieFunctionStringParams
- mp.game.graphics.callScaleformMovieMethod
- mp.game.graphics.createCheckpoint
- mp.game.graphics.destroyTrackedPoint
- mp.game.graphics.disableVehicleDistantlights
- mp.game.graphics.doesParticleFxLoopedExist
- mp.game.graphics.drawBox
- mp.game.graphics.drawDebugBox
- mp.game.graphics.drawDebugCross
- mp.game.graphics.drawDebugLineWithTwoColours
- mp.game.graphics.drawDebugLine
- mp.game.graphics.drawDebugSphere
- mp.game.graphics.drawDebugText2d
- mp.game.graphics.drawDebugText
- mp.game.graphics.drawLightWithRangeAndShadow
- mp.game.graphics.drawLightWithRange
- mp.game.graphics.drawLine
- mp.game.graphics.drawMarker
- mp.game.graphics.drawPoly
- mp.game.graphics.drawRect
- mp.game.graphics.drawScaleformMovie3dNonAdditive
- mp.game.graphics.drawScaleformMovie3d
- mp.game.graphics.drawScaleformMovieFullscreenMasked
- mp.game.graphics.drawScaleformMovieFullscreen
- mp.game.graphics.drawScaleformMovie
- mp.game.graphics.drawSpotLightWithShadow
- mp.game.graphics.drawSpotLight
- mp.game.graphics.drawSprite
- mp.game.graphics.drawText
- mp.game.graphics.drawTvChannel
- mp.game.graphics.enableAlienBloodVfx
- mp.game.graphics.enableClownBloodVfx
- mp.game.graphics.enableMovieSubtitles
- mp.game.graphics.fadeDecalsInRange
- mp.game.graphics.getDecalWashLevel
- mp.game.graphics.getSafeZoneSize
- mp.game.graphics.getScreenActiveResolution
- mp.game.graphics.getScreenAspectRatio
- mp.game.graphics.getScreenEffectIsActive
- mp.game.graphics.getScreenResolution
- mp.game.graphics.getTextureResolution
- mp.game.graphics.hasHudScaleformLoaded
- mp.game.graphics.hasNamedScaleformMovieLoaded
- mp.game.graphics.hasScaleformContainerMovieLoadedIntoParent
- mp.game.graphics.hasScaleformMovieLoaded
- mp.game.graphics.hasStreamedTextureDictLoaded
- mp.game.graphics.isDecalAlive
- mp.game.graphics.isTrackedPointVisible
- mp.game.graphics.loadMovieMeshSet
- mp.game.graphics.loadTvChannel
- mp.game.graphics.moveVehicleDecals
- mp.game.graphics.notify
- mp.game.graphics.popScaleformMovieFunctionVoid
- mp.game.graphics.pushScaleformMovieFunctionFromHudComponent
- mp.game.graphics.pushScaleformMovieFunctionN
- mp.game.graphics.pushScaleformMovieFunctionParameterBool
- mp.game.graphics.pushScaleformMovieFunctionParameterFloat
- mp.game.graphics.pushScaleformMovieFunctionParameterInt
- mp.game.graphics.pushScaleformMovieFunctionParameterString
- mp.game.graphics.pushScaleformMovieFunction
- mp.game.graphics.releaseMovieMeshSet
- mp.game.graphics.removeDecalsFromObjectFacing
- mp.game.graphics.removeDecalsFromObject
- mp.game.graphics.removeDecalsInRange
- mp.game.graphics.removeDecal
- mp.game.graphics.removeParticleFxInRange
- mp.game.graphics.removeParticleFx
- mp.game.graphics.requestHudScaleform
- mp.game.graphics.requestScaleformMovie3
- mp.game.graphics.requestScaleformMovieInstance
- mp.game.graphics.requestScaleformMovie
- mp.game.graphics.requestStreamedTextureDict
- mp.game.graphics.screen2dToWorld3d
- mp.game.graphics.set2dLayer
- mp.game.graphics.setBlackout
- mp.game.graphics.setDebugLinesAndSpheresDrawingActive
- mp.game.graphics.setDrawOrigin
- mp.game.graphics.setFarShadowsSuppressed
- mp.game.graphics.setFlash
- mp.game.graphics.GsetForcePedFootstepsTracks
- mp.game.graphics.setForceVehicleTrails
- mp.game.graphics.setFrozenRenderingDisabled
- mp.game.graphics.setNightvision
- mp.game.graphics.setNoiseoveride
- mp.game.graphics.setNoisinessoveride
- mp.game.graphics.setParticleFxBloodScale
- mp.game.graphics.setParticleFxCamInsideNonplayerVehicle
- mp.game.graphics.setParticleFxCamInsideVehicle
- mp.game.graphics.setParticleFxLoopedAlpha
- mp.game.graphics.setParticleFxLoopedColour
- mp.game.graphics.setParticleFxLoopedEvolution
- mp.game.graphics.setParticleFxLoopedOffsets
- mp.game.graphics.setParticleFxLoopedRange
- mp.game.graphics.setParticleFxLoopedScale
- mp.game.graphics.setParticleFxNonLoopedAlpha
- mp.game.graphics.setParticleFxNonLoopedColour
- mp.game.graphics.setParticleFxShootoutBoat
- mp.game.graphics.setPtfxAssetNextCall
- mp.game.graphics.setPtfxAssetOldToNew
- mp.game.graphics.setScaleformMovieAsNoLongerNeeded
- mp.game.graphics.setScaleformMovieToUseSystemTime
- mp.game.graphics.setScreenDrawPosition
- mp.game.graphics.setSeethrough
- mp.game.graphics.setStreamedTextureDictAsNoLongerNeeded
- mp.game.graphics.setTimecycleModifierStrength
- mp.game.graphics.setTimecycleModifier
- mp.game.graphics.setTrackedPointInfo
- mp.game.graphics.setTransitionTimecycleModifier
- mp.game.graphics.setTvAudioFrontend
- mp.game.graphics.setTvChannel
- mp.game.graphics.setTvVolume
- mp.game.graphics.sittingTv
- mp.game.graphics.startParticleFxLoopedAtCoord
- mp.game.graphics.startParticleFxLoopedOnEntity2
- mp.game.graphics.startParticleFxLoopedOnEntityBone2
- mp.game.graphics.startParticleFxLoopedOnEntityBone
- mp.game.graphics.startParticleFxLoopedOnEntity
- mp.game.graphics.startParticleFxLoopedOnPedBone
- mp.game.graphics.startParticleFxNonLoopedAtCoord2
- mp.game.graphics.startParticleFxNonLoopedAtCoord
- mp.game.graphics.startParticleFxNonLoopedOnEntity2
- mp.game.graphics.startParticleFxNonLoopedOnEntity
- mp.game.graphics.startParticleFxNonLoopedOnPedBone2
- mp.game.graphics.startParticleFxNonLoopedOnPedBone
- mp.game.graphics.startScreenEffect
- mp.game.graphics.stopParticleFxLooped
- mp.game.graphics.stopScreenEffect
- mp.game.graphics.transitionFromBlurred
- mp.game.graphics.transitionToBlurred
- mp.game.graphics.washDecalsInRange
- mp.game.graphics.world3dToScreen2d
Rework required!