Skip to content

0.3.DL Specific RPCs

Nexius edited this page Mar 15, 2023 · 46 revisions

0.3.DL RPCs

This page contains RPCs which are only present in SAMP 0.3.DL, or differ from the main 0.3.7 branch.

Outgoing RPCs

  • ShowActor - ID: 171

Parameters: UINT16 wActorID, UINT32 SkinID, UINT32 dCustomSkinID, float X, float Y, float Z, float Angle, float Health, UINT8 Invulnerable

Additional Information: if there is no custom skin, dCustomSkinID must be 0.

  • CreateObject - ID: 44

Parameters: UINT16 wObjectID, INT32 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.

  • SetPlayerVirtualWorld - ID: 48

Parameters: INT32 virtualworld

Additional Information: only used to inform about virtual world changes for downloads, sending this RPC won't actually change the virtual world since this is handled server-side

  • SetPlayerAttachedObject - ID: 113

Parameters: UINT16 playerid, UINT32 Index, bool create, INT32 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.

  • SetPlayerSkin - ID: 153

Parameters: UINT16 wPlayerID, UINT32 dBaseSkinID, UINT32 dCustomSkinID

Additional Information: if there is no custom skin, dCustomSkinID must be 0.

  • WorldPlayerAdd - ID: 32

Parameters: UINT16 wPlayerID, UINT8 team, UINT32 dSkinId, UINT32 dCustomSkinID, float PosX, float PosY, float PosZ, float facing_angle, UINT32 player_color, UINT8 fighting_style, UINT16 wSkillLevel

Additional Information:

  • if there is no custom skin, dCustomSkinID must be 0.
  • wSkillLevel is an array of weapon skill levels with size 11 (0 to 10).
  • SetSpawnInfo - ID: 68

Parameters: UINT8 byteTeam, UINT32 dSkin, UINT32 dCustomSkinID, 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 there is no custom skin, dCustomSkinID must be 0.

  • RequestClass - ID: 128

Parameters: UINT8 bRequestResponse, UINT8 byteTeam, UINT32 dSkin, UINT32 dCustomSkinID, 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 there is no custom skin, dCustomSkinID must be 0.
  • if bRequestResponse is false, it means the ClassID recieved was invalid (not selectable), and the rest of the Bitstream is empty. The data after bRequestResponse is identical to the one of SetSpawnInfo.
  • ModelInfo - ID: 179

Parameters: UINT32 index, INT32 count, UINT8 type, INT32 virtualworld, INT32 baseId, INT32 newId, UINT32 dffcrc, UINT32 txdcrc, UINT32 dffsize, UINT32 txdsize, UINT8 timeon, UINT8 timeoff

Additional Information: type: 1 = Skin, 2 = Model. If model isn't timed, timeon and timeoff must be 0.

  • ModelFile - ID: 183

This RPC has different parameters, using the first argument to differentiate from them

First Parameter UINT8 arg

Following parameters for arg 1: UINT8 fileType, UINT32 crc, UINT32 length, char[] data
Following parameters for arg 6 (http downloads): UINT8 fileType, UINT32 crc, UINT8 length, char[] url

  • SrcFinishedDownloading - ID: 185

Parameters: No parameters

Additional Information: This RPC is sent to disable the downloading state for the client

Incoming RPCs

  • FinishedDownloading - ID: 184

Parameters: UINT8 unused

Additional Information: unused parameter is always 128 (0x80), changing its value apparently has no effect.

  • RequestDffFile - ID: 181

Parameters: UINT32 dffcrc

  • RequestTxdFile - ID: 182

Parameters: UINT32 txdcrc