init
This commit is contained in:
27
RAGE/Network.d.ts
vendored
Normal file
27
RAGE/Network.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Network Functions
|
||||
* @public
|
||||
* @noSelf
|
||||
*/
|
||||
declare namespace network {
|
||||
|
||||
function network_is_host(): boolean;
|
||||
function has_control_of_entity(entity: Entity): boolean;
|
||||
function request_control_of_entity(entity: Entity): boolean;
|
||||
function is_session_started(): boolean;
|
||||
function network_session_kick_player(player: Player): void;
|
||||
function is_friend_online(name: string): boolean;
|
||||
function is_friend_in_multiplayer(name: string): boolean;
|
||||
function get_friend_scid(name: string): uint32_t;
|
||||
function get_friend_count(): uint32_t;
|
||||
function get_max_friends(): uint32_t;
|
||||
function network_hash_from_player(player: Player): Hash;
|
||||
function get_friend_index_name(index: uint32_t): string|null;
|
||||
function is_friend_index_online(index: uint32_t): boolean;
|
||||
function is_scid_friend(scid: uint32_t): boolean;
|
||||
function get_entity_player_is_spectating(player: Player): Entity|null;
|
||||
function get_player_player_is_spectating(player: Player): Player|null;
|
||||
function send_chat_message(msg: string, teamOnly: boolean): boolean;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user