Repository navigation
Documentation
OnPlayerEnterRadar(playerid, radarid, Float:speed)
Called when a player enters a radar above the speed limit.
- playerid - ID of the player.
- radarid - ID of the radar.
- speed - Player speed.
CreateRadar(Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 200.0, maxspeed = 140, radius = 15.0, activated = true)
Create a radar.
- X - The X pos of the radar object.
- Y - The Y pos of the radar object.
- Z - The Z pos of the radar object.
- rX - The X rotation of the radar object.
- rY - The Y rotation of the radar object.
- rZ - The Z rotation of the radar object.
- DrawDistance - (optional) The distance that San Andreas renders objects at. (Limit: 300)
- maxspeed - (optional) Minimum player speed to trigger radar.
- radius - (optional) Radius to check for near players.
- activated - (optioal) If the radar will check for players or not.
SetRadarPosition(radarid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 200.0)
Changes the radar position.
- radarid - ID of the radar.
- X - New X pos of the radar object.
- Y - New Y pos of the radar object.
- Z - New Z pos of the radar object.
- rX - New X rotation of the radar object.
- rY - New Y rotation of the radar object.
- rZ - New Z rotation of the radar object.
- DrawDistance - (optional) The distance that San Andreas renders objects at. (Limit: 300)
GetRadarPosition(radarid, &Float:X, &Float:Y, &Float:Z, &Float:rX, &Float:rY, &Float:rZ)
Gets the radar X, Y, Z, rX, rY, rZ passed by reference.
SetRadarActivated(radarid, bool:activated)
Actives or desactives a radar.
SetRadarRadius(radarid, Float:radius)
Change radar radius.
SetRadarMaxSpeed(radarid, speed)
Set the minimum speed to trigger the radar.
IsRadarActivated(radarid)
Checks if a radar is activated.
GetRadarMaxSpeed(radarid)
Gets the radar speed limit.
GetRadarObjectID(radarid)
Gets the OBJECT ID of the radar.
GetRadarRadius(radarid)
Gets radar radius.
IsValidRadar(radarid)
Checks if a radar exists.
IsPlayerInAnyRadar(playerid)
Checks if a player is in any radar range
IsPlayerInRadar(playerid, radarid)
Checks if a player is in a specific radar range
DestroyRadar(radarid)
Destroys a radar.