-
Notifications
You must be signed in to change notification settings - Fork 6
RPC List
Parameters: UINT16 wActorID, UINT32 SkinID, float X, float Y, float Z, float Angle, float Health, UINT8 Invulnerable
Parameters: UINT16 wActorID
Parameters: UINT16 wActorID, UINT8 AnimLibLength, char[] AnimLib, UINT8 AnimNameLength, char[] AnimName, float fDelta, bool loop, bool lockx, bool locky, bool freeze, UINT32 time
Parameters: UINT16 wActorID
Parameters: UINT16 wActorID, float angle
Parameters: UINT16 wActorID, float x, float y, float z
Parameters: UINT16 wActorID, float health
Parameters: UINT16 playerid, UINT32 Index, bool create, UINT32 Model, UINT32 bone, float fOffsetX, float fOffsetY, float fOffsetZ, float fRotX, float fRotY, float fRotZ, float fScaleX, float fScaleY, float fScaleZ, UINT32 materialcolor1, UINT32 materialcolor2
Additional Information: This RPC can be used to Attach/Remove objects from players. To attach, the 3rd parameter (bool create) must be true. To remove, send the first three parameters only and make sure the 3rd one is false.
Parameters: UINT16 playerid, UINT32 color, float drawDistance, UINT32 expiretime, UINT8 textLength, char[] text
Parameters: There are no parameters, just send this RPC to the player you wish to disable the checkpoint.
Parameters: UINT8 type, float X, float Y, float Z, float nextposX, float nextposY, float nextposZ, float radius
Parameters: There are no parameters, just send this RPC to the player you wish to disable the checkpoint.
Parameters: float x, float y, float z, float radius
Parameters: INT16 wDialogID, UINT8 bDialogStyle, UINT8 bTitleLength, char[] szTitle, UINT8 bButton1Len, char[] szButton1, UINT8 bButton2Len, char[] szButton2, CSTRING szInfo[4096]
Parameters: INT16 wGangZoneID, float min_x, float min_y, float max_x, float max_y, UINT32 color
Parameters: INT16 wGangZoneID
Parameters: INT16 wGangZoneID, UINT32 color
Parameters: INT16 wGangZoneID
Parameters: UINT32 dStyle, UINT32 dTime, UINT32 dMessageLength, char[] Message
Parameters: float gravity
Parameters: UINT8 bIconID, float posX, float posY, float posZ, UINT8 type, UINT32 color, UINT8 style
Parameters: UINT8 bIconID
Parameters: UINT8 MenuID, UINT32 bColumns, UINT32 TitleLength, char[] Title, float PosX, float PosY, float Col1Width, float Col2Width, UINT32 bMenuEnabled, UINT32 bRowEnabled, UINT32 Col1HeaderLength, char[] Col1Header, UINT8 Col1Count, UINT32 Col1ItemsLength, char[] Col1Items, UINT32 Col2HeaderLength, char[] Col2Header, UINT8 Col2Count, UINT32 Col2ItemsLength, char[] Col2Items
Additional Information:
- bRowEnabled is an array of interactive rows with size 12 (0 to 11).
- Col1Items is an array of items text with size Col1Count. Col2Items is an array of items text with size Col2Count.
- If bColumns is false, it means that Col2Width, Col2Header, Col2Count and Col2Items should be skipped.
Parameters: UINT8 MenuID
Parameters: UINT8 MenuID
Parameters: UINT16 wPlayerID, UINT8 show
Parameters: UINT16 wObjectID, UINT32 ModelID, float x, float y, float z, float rotx, float roty, float rotz, float DrawDistance, UINT8 NoCameraCol, UINT16 attachedObject, UINT16 attachedVehicle, float AttachOffsetX, float AttachOffsetY, float AttachOffsetZ, float AttachRotX, float AttachRotY, float AttachRotZ, UINT8 SyncRotation
Additional Information: This RPC has multiple usages, such as determining if the object is attached to a vehicle or object. If you don't want this object to be attached to an object or vehicle, just make sure the parameters "attachedVehicle" or "attachedObject" have the value -1.
Parameters For Material: UINT16 wObjectID, UINT8 MaterialType, UINT8 MaterialID, UINT16 ModelID, UINT8 libraryNameLength, char[] libraryName, UINT8 textureNameLength, char[] textureName, UINT32 color
Parameters For MaterialText: UINT16 wObjectID, UINT8 MaterialType, UINT8 MaterialID, UINT8 MaterialSize, UINT8 fontNameLength, char[] fontName, UINT8 FontSize, UINT8 Bold, UNIT32 FontColor, UNIT32 BackgroundColor, UNIT8 Align, CSTRING text[2048]
Additional Information: Incognito's Streamer plugin uses this RPC, too. This RPC has multiple usages, you have to check for MaterialType to see if it's SetPlayerObjectMaterial or SetPlayerObjectMaterialText.
Parameters: UINT16 wObjectID, UINT16 wPlayerID, float x, float y, float z, float rotx, float roty, float rotz
Parameters: UINT16 wObjectID
Parameters: UINT32 index
Parameters: bool PlayerObject, UINT16 wObjectID
Parameters: There are no parameters, just send this RPC to the player that should be able to select the object.
Parameters: There are no parameters, just send this RPC to the player that should quit the object editing.
Parameters: UINT16 wObjectID, float x, float y, float z
Parameters: UINT16 wObjectID, float rotx, float roty, float rotz
Parameters: UINT16 wObjectID
Parameters: UINT16 wObjectID, float x, float y, float z, float target_X, float target_Y, float target_Z, float speed, float target_rX, float target_rY, float target_rZ
Parameters: UINT16 wObjectID
Parameters: INT32 iPickupID, INT32 iModelID, INT32 iSpawnType, float x, float y, float z
Parameters: INT32 iPickupID
Parameters: UINT16 wPlayerID, UINT32 dColor, UINT8 isNPC, UINT8 PlayerNameLength, char[] PlayerName
Additional Information: Keeping dColor parameter as 0 will make random color on each client.
Parameters: UINT16 wPlayerID, UINT8 reason
Additional Information: reasons: 0 = Timeout, 1 = Quit, 2 = Kick/Ban.
Parameters: bool bZoneNames, bool bUseCJWalk, bool bAllowWeapons, bool bLimitGlobalChatRadius, float fGlobalChatRadius, bool bStuntBonus, float fNameTagDistance, bool bDisableEnterExits, bool bNameTagLOS, bool bManualVehEngineAndLights, UINT32 dSpawnsAvailable, UINT16 wPlayerID, bool bShowNameTags, UINT32 dShowPlayerMarkers, UINT8 bWorldTime, UINT8 bWeather, float fGravity, bool bLanMode, UINT32 dDeathDropMoney, bool bInstagib, UINT32 dOnfootRate, UINT32 dInCarRate, UINT32 dWeaponRate, UINT32 dMultiplier, UINT32 dLagCompMode, UINT8 length, char[] HostName, UINT8 bVehicleModels, UINT32 dVehicleFriendlyFire
Additional Information: bVehicleModels is an array of used vehicle models with size 212 (0 to 211).
Parameters: UINT8 reason
Additional Information: This RPC disconnects a player from the server showing him "CONNECTION REJECTED: " message. Values for reason: 1 = Incorrect Version, 2 = Unacceptable NickName, 3 = Bad mod version, 4 = Unable to allocate a player slot.
Parameters: UINT16 wPlayerID, INT32 score, UINT32 ping
Parameters: UINT8 type, UINT32 address, UINT16 offset, UINT16 count
Parameters: There are no parameters, just send this RPC to the player that should be reconnected.
Additional Information: This RPC reconnects a player to the server showing him "The server is restarting..." message.
Parameters: UINT16 wPlayerID, UINT8 AnimLibLength, char[] AnimLib, UINT8 AnimNameLength, char[] AnimName, float fDelta, bool loop, bool lockx, bool locky, bool freeze, UINT32 dTime
Parameters: UINT16 wPlayerID
Parameters: UINT16 wPlayerID
Parameters: UINT16 wPlayerID, UINT8 NameLength, char[] Name, UINT8 bSuccess
Additional Information: Keep bSuccess parameter as 1.
Parameters: float x, float y, float z
Parameters: float x, float y, float z
Parameters: float angle
Parameters: UINT16 wPlayerID, UINT32 dSkillID, UINT16 wLevel
Parameters: UINT32 wPlayerID, UINT32 dSkinID
Parameters: UINT8 bHour, UINT8 bMinute
Parameters: UINT8 bActionID
Parameters: UINT8 bWeatherID
Parameters: float max_x, float min_x, float max_y, float min_y
Parameters: float x, float y, float z
Parameters: UINT8 moveable
Additional Information: moveable must be 1 to enable and 0 to disable.
Parameters: UINT32 spectating
Additional Information: spectating must be 1 to enable and 0 to disable.
Parameters: UINT8 toggle
Additional Information: toggle must be 1 to enable and 0 to disable.
Parameters: UINT16 wPlayerID, UINT8 bTeamID
Parameters: UINT32 soundid, float x, float y, float z
Parameters: INT32 iMoney
Parameters: There are no parameters, just send this RPC to the player you wish to reset the money.
Parameters: There are no parameters, just send this RPC to the player you wish to reset the weapons.
Parameters: UINT32 dWeaponID, UINT32 dBullets
Parameters: UINT8 UrlLength, char[] Url, float x, float y, float z, float radius, UINT8 UsePos
Additional Information: UsePos must be 1 if you want the sound to play at the position it was set, otherwise send it as 0.
Parameters: UINT16 suspectId, UINT32 inVehicle, UINT32 vehicleModel, UINT32 vehicleColor, UINT32 crime, float x, float y, float z
Parameters: There are no parameters, just send this RPC to the player you wish to stop the audio stream for.
Parameters: UINT32 dObjectModel, float x, float y, float z, float radius
Parameters: float health
Parameters: float armour
Parameters: UINT8 bWeaponID, UINT16 wAmmo
Parameters: There are no parameters, just send this RPC to the player you wish to set the camera behind.
Parameters: UINT32 dWeaponID
Parameters: UINT16 wPlayerID, UINT8 team, UINT32 dSkinId, float PosX, float PosY, float PosZ, float facing_angle, UINT32 player_color, UINT8 fighting_style, UINT16 wSkillLevel
Additional Information: wSkillLevel is an array of weapon skill levels with size 11 (0 to 10).
Parameters: UINT16 wPlayerID
Parameters: bool bPosSet, float fromPosX, float fromPosY, float fromPosZ, float toPosX, float toPosY, float toPosZ, UINT32 time, UINT8 cutType
Parameters: float X, float Y, float Z, UINT32 wType, float radius
Parameters: UINT16 wKillerID, UINT16 wPlayerID, UINT8 reason
Parameters: INT32 time
Parameters: UINT32 dColor, UINT32 dMessageLength, char[] Message
Parameters: UINT32 length, char[] Name
Parameters: INT32 iDrunkLevel
Parameters: UINT16 wPlayerID, UINT8 fightstyle
Parameters: UINT8 bInteriorID
Parameters: UINT16 wPlayerID, UINT32 dColor
Parameters: There are no parameters, just send this RPC to the player you wish to force class selection for.
Parameters: UINT8 enable
Parameters: UINT8 bWantedLevel
Parameters: float lookposX, float lookposY, float lookposZ
Parameters: float lookposX, float lookposY, float lookposZ, UINT8 cutType
Parameters: UINT8 byteTeam, UINT32 dSkin, UINT8 unused, float X, float Y, float Z, float fRotation, UINT32 dSpawnWeapons1, UINT32 dSpawnWeapons2, UINT32 dSpawnWeapons3, UINT32 dSpawnWeaponsAmmo1, UINT32 dSpawnWeaponsAmmo2, UINT32 dSpawnWeaponsAmmo3
Parameters: UINT8 bRequestResponse, UINT8 byteTeam, UINT32 dSkin, UINT8 unused, float X, float Y, float Z, float fRotation, UINT32 dSpawnWeapons1, UINT32 dSpawnWeapons2, UINT32 dSpawnWeapons3, UINT32 dSpawnWeaponsAmmo1, UINT32 dSpawnWeaponsAmmo2, UINT32 dSpawnWeaponsAmmo3
Additional Information: if bRequestResponse is 0, it means the ClassID recieved was invalid (not selectable), and the rest of the Bitstream is empty. Otherwise, the data after bRequestResponse is identical to the one of SetSpawnInfo.
Parameters: UINT8 bRequestResponse
Additional Information: if bRequestResponse is 0, it means the spawn request was declined.
Parameters: UINT16 wPlayerID, UINT8 bSpecCamType
Parameters: UINT16 wVehicleID, UINT8 bSpecCamType
Parameters: UINT8 enable
Parameters: UINT8 enable, UINT32 color
Additional Information: This RPC can be used to enable/disable TextDraw selection for clickable TextDraws. Use 1 to enable and 0 to disable.
Parameters: UINT16 wTextDrawID, UINT16 TextLength, char[] Text
Parameters: UINT16 wTextDrawID, UINT8 Flags, float fLetterWidth, float fLetterHeight, UINT32 dLetterColor, float fLineWidth, float fLineHeight, UINT32 dBoxColor, UINT8 Shadow, UINT8 Outline, UINT32 dBackgroundColor, UINT8 Style, UINT8 Selectable, float fX, float fY, UINT16 wModelID, float fRotX, float fRotY, float fRotZ, float fZoom, INT16 wColor1, INT16 wColor2, UINT16 szTextLen, char[] szText
Additional Information: global textdraws use IDs 0-2047 and per-player use IDs 2048-2303.
Values of the Flags field:
- bit 1: box on/off
- bit 2: align left
- bit 3: align center
- bit 4: align right
- bit 5: proportional font on/off
Parameters: UINT16 wTextDrawID
Parameters: UINT16 wPlayerID, UINT16 wVehicleID, UINT8 bIsPassenger
Parameters: UINT16 wPlayerID, UINT16 wVehicleID
Parameters: UINT16 wVehicleID, UINT16 wComponentID
Parameters: UINT16 wTrailerID, UINT16 wVehicleID
Parameters: UINT16 wVehicleID
Parameters: UINT16 wVehicleID, UINT8 bInteriorID
Parameters: UINT16 wVehicleID, UINT8 bSeatID
Parameters: There are no parameters, just send this RPC to the player that should be removed from a vehicle.
Parameters: UINT16 wVehicleID, UINT32 panels, UINT32 doors, UINT8 lights, UINT8 tires
Parameters: UINT16 wVehicleID, UINT8 tires
Parameters: UINT16 wPlayerID, UINT32 eventType, UINT32 wVehicleID, UINT32 param1, UINT32 param2
Parameters: UINT16 wVehicleID, UINT8 PlateLength, char[] PlateText
Parameters: bool disable
Parameters: UINT16 wVehicleID, float Health
Parameters: UINT8 turn, float x, float y, float z
Additional Information: if turn is 1, angular velocity will be applied.
Parameters: UINT16 wVehicleID, float x, float y, float z
Parameters: UINT16 wVehicleID, float Angle
Parameters: UINT16 wVehicleID, UINT8 bObjective, UINT8 bDoorsLocked
Parameters: UINT16 wVehicleID, UINT8 bEngine, UINT8 bLights, UINT8 bAlarm, UINT8 bDoors, UINT8 bBonnet, UINT8 bBoot, UINT8 bObjective, UINT8 bSiren, UINT8 bDoorDriver, UINT8 bDoorPassenger, UINT8 bDoorBackLeft, UINT8 bDoorBackRight, UINT8 bWindowDriver, UINT8 bWindowPassenger, UINT8 bWindowBackLeft, UINT8 bWindowBackRight
Parameters: UINT16 wVehicleID, UINT32 ModelID, float X, float Y, float Z, float Angle, UINT8 InteriorColor1, UINT8 InteriorColor2, float Health, UINT8 interior, UINT32 DoorDamageStatus, UINT32 PanelDamageStatus, UINT8 LightDamageStatus, UINT8 tireDamageStatus, UINT8 addSiren, UINT8 modslot0, UINT8 modslot1, UINT8 modslot2, UINT8 modslot3, UINT8 modslot4, UINT8 modslot5, UINT8 modslot6, UINT8 modslot7, UINT8 modslot8, UINT8 modslot9, UINT8 modslot10, UINT8 modslot11, UINT8 modslot12, UINT8 modslot13, UINT8 PaintJob, UINT32 BodyColor1, UINT32 BodyColor2
Parameters: UINT16 wVehicleID
Parameters: UINT16 wLabelID, UINT32 color, float x, float y, float z, float DrawDistance, UINT8 testLOS, UINT16 attachedPlayer, UINT16 attachedVehicle, CSTRING text[4096]
Parameters: UINT16 wLabelID
Parameters: UINT8 bHour
Additional Information: Pretty much the same as SetPlayerTime, except it only sets the hour, and not minutes.
Parameters: bool bEnabled
Parameters: UINT16 wVehicleID, UINT8 bIsPassenger
Additional Information: if bIsPassenger is 0, the player is about to enter the driver seat. If bIsPassenger is 1, the player is about to enter any of the passenger seats in the vehicle.
Parameters: UINT16 wVehicleID
Parameters: UINT16 wVehicleID, UINT32 panels, UINT32 doors, UINT8 lights, UINT8 tires
Parameters: UINT32 wVehicleID, UINT32 param1, UINT32 param2, UINT32 eventType
Parameters: UINT16 wVehicleID
Parameters: No parameters.
Parameters: UINT8 length, char[] ChatMessage
Parameters: UINT8 bInteriorID
Parameters: UINT8 bReason, UINT16 wKillerID
Parameters: UINT32 length, char[] commandtext
Parameters: UINT16 clickedplayer, UINT8 source
Parameters: INT16 wDialogID, UINT8 bResponse, INT16 wListItem, UINT8 bTextLength, char[] Text
Parameters: UINT8 type, UINT32 address, UINT8 response
Parameters: bool bGiveOrTake, UINT16 wPlayerID, float damage_amount, UINT32 dWeaponID, UINT32 dBodypart
Additional Information: if bGiveOrTake is true, wPlayerID will receive the damage. If bGiveOrTake is false, wPlayerID will send the damage.
Parameters: bool unused, UINT16 wActorID, float damage_amount, UINT32 dWeaponID, UINT32 dBodypart
Parameters: float X, float Y, float Z
Parameters: UINT16 wClassID
Parameters: No parameters.
Parameters: UINT8 row
Parameters: No parameters.
Parameters: UINT16 clickedid
Parameters: INT32 iPickupID
Parameters: UINT32 selectType, UINT16 objectid, UINT32 model, float posX, float posY, float posZ
Parameters: UINT32 response, UINT32 index, UINT32 model, UINT32 bone, float offsetX, float offsetY, float offsetZ, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float scaleZ, UINT32 color1, UINT32 color2
Parameters: bool PlayerObject, UINT16 objectid, UINT32 response, float pX, float pY, float pZ, float rX, float rY, float rZ
Additional Information: if PlayerObject is true, it means the object edited is a player object, otherwise it would be false.
Parameters: No parameters.
Parameters: UINT32 iVersion, UINT8 byteMod, UINT8 byteNicknameLen, char[] NickName, UINT32 uiClientChallengeResponse, UINT8 byteAuthKeyLen, char[] auth_key, UINT8 iClientVerLen, char[] ClientVersion, UINT32 uiClientChallengeResponse
Additional Information: uiClientChallengeResponse parameter is duplicated by the official client at the end, while other client implementations don't do this (they don't send it at all so it's 0).
Parameters: UINT32 iVersion, UINT8 byteMod, UINT8 byteNicknameLen, char[] NickName, UINT32 uiClientChallengeResponse
Additional Information: this RPC will only get sent by NPCs.
Parameters: UINT16 ObjectTarget, UINT16 VehicleTarget, UINT16 PlayerTarget, UINT16 ActorTarget
Additional Information: This will be sent when an entity is in view of the camera. Multiple things can be shown at the same time. If something is not in view, the target will be 65535.
-
RPC List
- Outgoing RPCs
-
Incoming RPCs
- Enter Vehicle
- Exit Vehicle
- Vehicle Damaged
- Scm Event
- Vehicle Destroyed
- Send Spawn
- Chat Message
- Interior Change Notification
- Death Notification
- Send Command
- Dialog Response
- Client Check Response
- Give/Take Damage
- Give Actor Damage
- Map Marker
- Request Class
- Request Spawn
- Menu Select
- Menu Quit
- Select TextDraw
- Picked Up PickUp
- Select Object
- Edit Attached Object
- Edit Object
- Update Scores and Pings
- Client Join
- NPC Join
- Camera Target