IsWorldSpecialPropertyEnabled: Difference between revisions
Jump to navigation
Jump to search
m (Undo revision 55798 by CrosRoad95 (talk)) |
m (refer to set world special property enabled) |
||
Line 8: | Line 8: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''propname:''' the name of the property to retrieve. Possible values are | *'''propname:''' the name of the property to retrieve. Possible values are listed on [[SetWorldSpecialPropertyEnabled]]. | ||
===Returns=== | ===Returns=== |
Revision as of 15:13, 22 July 2018
Checks if a special world property (cheat) is enabled or not.
Syntax
bool isWorldSpecialPropertyEnabled ( string propname )
Required Arguments
- propname: the name of the property to retrieve. Possible values are listed on SetWorldSpecialPropertyEnabled.
Returns
Returns true if the property is enabled, false if it is disabled or the specified property name is invalid.
Example
Click to collapse [-]
Clientside exampleThis example detects any cheaters using these cheats on your server and sends them to hell, or you could kick them if you trigger a server event which does that.
function clientCheatScan() glp = getLocalPlayer() if isWorldSpecialPropertyEnabled("aircars") then clientCheat() end if isWorldSpecialPropertyEnabled("hovercars") then clientCheat() end if isWorldSpecialPropertyEnabled("extrabunny") then clientCheat() end if isWorldSpecialPropertyEnabled("extrajump") then clientCheat() end end setTimer(clientCheatScan, 15000, 0) function clientCheat() -- This function will send them to hell. fadeCamera(false, 1, 255, 0, 0) x,y,z = getElementPosition(glp) createExplosion(x,y,z, 1) toggleAllControls(false, true, true) createMarker(x,y,z, "cylinder", 1, 1, 1, 1) setTimer(clientCheat, 200, 1) outputChatBox("WELCOME TO CHEATERS HELL LMAO!") end
See Also
- createSWATRope
- getBirdsEnabled
- getCoronaReflectionsEnabled
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getGroundPosition
- getInteriorFurnitureEnabled
- getNearClipDistance
- getPedsLODDistance
- getRoofPosition
- getScreenFromWorldPosition
- getVehiclesLODDistance
- getWorldFromScreenPosition
- isAmbientSoundEnabled
- isLineOfSightClear
- isWorldSoundEnabled
- processLineOfSight
- resetAmbientSounds
- resetBlurLevel
- resetColorFilter
- resetCoronaReflectionsEnabled
- resetNearClipDistance
- resetPedsLODDistance
- resetVehiclesLODDistance
- resetWorldSounds
- setAmbientSoundEnabled
- setBirdsEnabled
- setColorFilter
- setCoronaReflectionsEnabled
- setInteriorFurnitureEnabled
- setInteriorSoundsEnabled
- setNearClipDistance
- setPedsLODDistance
- setVehiclesLODDistance
- setWorldSoundEnabled
- testLineAgainstWater
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel