Hook List
Here you can find list of hooks and Information about them. More general information about hook usage you can find here.
McPhone.Hook.CallStart
Server McPhone.Hook.CallStart( Player caller, Player receiver ) |
Description
Called when player (caller) starts calling a player (receiver)
Arguments
McPhone.Hook.UnsuccessCall
Server McPhone.Hook.UnsuccessCall( Player caller, string number ) |
Description
Called when player (caller) starts unsuccessful phone call
Arguments
McPhone.Hook.ExtraNumberCalled
Server McPhone.Hook.ExtraNumberCalled( Player caller, table number ) |
Description
Called when player (caller) calls scripted phone number
Arguments
- Player caller | Player, who started the call
- table number | ExtraNumber data
McPhone.Hook.OnCallEnd
Server McPhone.Hook.CallStoped( Player ply1, Player ply2 ) |
Description
Called when player (ply1) interrupts phone call with another player (ply2)
Arguments
McPhone.Hook.Accept
Server McPhone.Hook.Accept( Player receiver, Player caller ) |
Description
Called when player (receiver) accept call from player (caller)
Arguments
McPhone.Hook.SendSMS
Server McPhone.Hook.SendSMS( Player sender, Player receiver, string message ) |
Description
Called when player (sender) sent an sms message to player (receiver)
Arguments
- Player receiver | Player, who sent the sms
- Player caller | Player, who received the sms
- string message | Message text
McPhone.Hook.SendMail
Server McPhone.Hook.SendMail( Player sender, string topic, string message ) |
Description
Called when player (sender) sends an email
Arguments
McPhone.Hook.OnPhoneDropped
Server McPhone.Hook.OnPhoneDropped( Player ply, Entity phone ) |
Description
Called when player drops his phone
Arguments
McPhone.Hook.OnPhonePicked
Server McPhone.Hook.OnPhonePicked( Player ply, Entity phone ) |
Description
Called when player picked up a phone entity
Arguments
McPhone.Hook.BlockPhone
Shared McPhone.Hook.BlockPhone( Player ply ) |
Description
Server side | Called before player starts any phone call
Client side | Called every frame. Automatically closes phone, if hook returns true
Arguments
- Player ply | Player, who wants to use a phone
Returns
- boolean | block phone from usage by a player
No Comments