iCore
Search…
⌃K

Events

Server-side events.

iCore:player:created

Same with iCore:player:ready but called only one when player created after signup.

iCore:player:ready

When player join server and ready to play.
RegisterNetEvent('iCore:player:ready')
AddEventHandler('iCore:player:ready', function(playerData)
print('Welcome' .. playerData.name)
end)

iCore:player:zone

Check and fire every 15 seconds when player zone name changed.
RegisterNetEvent('iCore:player:zone')
AddEventHandler('iCore:player:zone', function(oldZone, newZone)
print('Old zone is ' .. oldZone)
print('New zone is ' .. newZone)
end)

iCore:inventory:use

When player use inventory item.
RegisterNetEvent('iCore:inventory:use')
AddEventHandler('iCore:inventory:use', function(data)
local id = source
print('player ' .. id .. ' request use item ' .. data.item)
end)

iCore:media:end

Media zone finish the song.
RegisterNetEvent('iCore:media:end')
AddEventHandler('iCore:media:end', function(data)
print(json.encode(data))
end)