samp-packet-list
samp-packet-list copied to clipboard
Missing some RPCs from rpc list
Currently there are some missing outcoming RPCs, addition of which would be very useful:
- SpawnPlayer
- SetVehicleToRespawn
- RepairVehicle
- SetVehicleVelocity
- SetVehicleAngularVelocity
- AttachTrailerToVehicle
- DetachTrailerFromVehicle
- AddVehicleComponent (if there is an RPC to set it when vehicle is already created)
- ChangeVehicleColor (if there is an RPC to set it when vehicle is already created)
- ChangeVehiclePaintjob (if there is an RPC to set it when vehicle is already created)
UPD: Using OnOutcomingRPC for debugging I managed to figure out some of the IDs of the functions stated above.
- SpawnPlayer = outcoming RPC 129
- SetVehicleToRespawn = outcoming RPC 165 + outcoming RPC 164
- RepairVehicle = outcoming RPC 147 + outcoming RPC 106
- AddVehicleComponent, ChangeVehicleColor and ChangeVehiclePaintjob = outcoming RPC 96
- AttachTrailerToVehicle = outcoming RPC 148
- DetachTrailerFromVehicle = outcoming RPC 149
- SetVehicleVelocity and SetVehicleAngularVelocity = outcoming RPC 91
Sorry for the possible flood or something, but I have a specific desire to add as much information as possible to this wiki since this is the only place where something is presented at all, however, the contained information is really not enough for the full development of something serious and large on pawn.raknet. So, I found a few more RPCs (but this time also incoming) that are equivalent to the following publics:
OnVehicleDeath = IRPC 136 OnPlayerClickTextDraw, OnPlayerClickPlayerTextDraw = IRPC 83 OnEnterExitModShop/OnVehicleMod/OnVehiclePaintjob/OnVehicleColor = IRPC 96 OnPlayerClickPlayer = IRPC 23
Other RPCs: InitGame = ORPC 139 SrvNetStats = 102 (both IRPC and ORPC) GameTimeUpdate = ORPC 60 (regularly sends to a player every few seconds) GameModeRestart = ORPC 40 ConnectionRejected = 130 (probably ORPC) DestroyPickup = ORPC 63 DestroyWeaponPickup = ORPC 97 MoveObject = ORPC 99 InitMenu = ORPC 76 Create3DTextLabel = ORPC 36 AttachCameraToObject = ORPC 81
Some info about your RPCs. Also I guess Bruno can add this to the wiki.
SpawnPlayer
RPC_RequestSpawn = 129;
PARAMS: uint32_t PlayerID
AttachTrailerToVehicle
RPC_ScrAttachTrailerToVehicle = 148;
PARAMS: uint16_t trailerid, uint16_t vehicleid
DetachTrailerFromVehicle
RPC_ScrDetachTrailerFromVehicle = 149;
PARAMS: uint16_t vehicleid
SetVehicleVelocity and SetVehicleAngularVelocity
RPC_ScrSetVehicleVelocity = 91;
PARAMS: uint8_t turn, float vel_x, float vel_y, float vel_z;
Callbacks:
OnVehicleDeath
RPC_VehicleDestroyed = 136;
PARAMS: uint16_t vehicleid
OnPlayerClickPlayer
RPC_ClickPlayer = 23;
PARAMS: uint16_t clickedplayer, uint8_t source
OnPlayerClickTextDraw
RPC_ClickTextDraw = 83;
PARAMS: uint16_t clickedid;
OnEnterExitModShop/OnVehicleMod/OnVehiclePaintjob/OnVehicleColor
RPC_ScmEvent = 96;
PARAMS: uint16_t vehicleid, uint32_t param2, uint32_t param3, uint32_t event
Other RPCs
not enough information, I don’t think I can help here :[
I found another RPC IDs which can be also useful: SetVehicleParamsEx/SetVehicleParamsCarDoors/SetVehicleParamsCarWindows = ORPC 24 InterpolateCamera = ORPC 82 PlayCrimeReportForPlayer = ORPC 112 CreateMenu = ORPC 76 (called with ORPC 77 when you show a menu for the first time) EditObject = ORPC 117 EditAttachedObject = ORPC 116 SetPlayerShopName = ORPC 33 MoveObject = ORPC 99 SendClientCheck = ORPC 103