GetHostId

From CitizenMP:IV Reloaded
Jump to: navigation, search

Description:

Returns the player identifier for the current session arbitrator (i.e. 'host' in rline terms). See CitizenFX networking model for more details.


Parameters:

This function takes no parameters.


Return value:

An integer that specified the host's player/network identifier.


Example Usage:

TriggerClientEvent('heyHost', GetHostId(), 'hi, hosty guy!')