Functions
Client-side functions
iCore.player.getData
local player = iCore.player.getData()
print(json.encode(player))
iCore.player.freezee
local playerId = PlayerId()
-- freeze
local player = iCore.player.freeze(playerId, true)
-- un freeze
local player = iCore.player.freeze(playerId, false)
iCore.player.spawn
-- spawn data
local data = {}
-- required
data['x'] = 0.0; data['y'] = 0.0; data['z'] = 0.0; data['heading'] = 0.0;
-- spawn
iCore.player.spawn(data)
iCore.player.openCharacterCreator
-- init character creator data
local data = {}
-- camera position: default, head, body, bottom
data['position'] = 'default'
-- list options allow to change
data['allows'] = {'close','models','inheritance','hair','beard','eyeBrown','lipsEye','nose','cheeks','jaw','chimp','neck','blemishes','ageing','blush','makeup','torsos','undershirts','tops','legs','shoes','accessory','masks','hat','glass','ear','watch','bracelet'}
iCore.player.openCharacterCreator(data)
iCore.player.setCharacterData
-- init character data
local data = {}
data['model'] = 'mp_m_freemode_01'
iCore.player.setCharacterData(data)
shapeFirstID, shapeSecondID, skinFirstID, skinSecondID, shapeMix, skinMix
-- init character data
local data = {}
data['model'] = 'mp_m_freemode_01'
data['shapeFirstID'] = 1
data['shapeSecondID'] = 1
data['skinFirstID'] = 1
data['skinSecondID'] = 1
data['shapeMix'] = 1.0
data['skinMix'] = 0.5
iCore.player.setCharacterData(data)
hairStyle, hairColor1, hairColor2
beardStyle, beardOpacity, beardColor
eyeBrownStyle, eyeBrownOpacity, eyeBrownColor
eyeOpening, lipThickness, eyeColor, lipstickStyle, lipstickOpacity, lipstickColor
noseWidth, nosePeakHight, nosePeakLenght, noseBoneHigh, nosePeakLowering, noseBoneTwist
cheeksBoneHigh, cheeksBoneWidth, cheeksWidth
chimpBoneLowering, chimpBoneLenght, chimpBoneWidth, chimpHole
neckThickness
blemishesStyle, blemishesOpacity
complexionStyle, complexionOpacity
ageingStyle, ageingOpacity
blushStyle, blushOpacity, blushColor
makeupStyle, makeupOpacity
torsosStyle, torsosTexture
undershirtsStyle, undershirtsTexture
topsStyle, topsTexture
legsStyle, legsTexture
shoesStyle, shoesTexture
accessoryStyle, accessoryTexture
masksStyle, masksTexture
hatStyle, hatTexture
glassStyle, glassTexture
earStyle, earTexture
watchStyle, watchTexture
braceletStyle, braceletTexture
iCore.blip.create
local data = {name = 'Boxing', color = 1, sprite = 536, scale = 0.6, coords = vector3(185.66, -1272.98, 29.19), flash = true, remove = 6000}
iCore.blip.create(data)
iCore.shared.functions.closestPlayer
local range = 2.0
local closestPlayer = iCore.shared.functions.closestPlayer(range)
-- result is in playerServerId
print(closestPlayer)
iCore.shared.functions.enumerateObjects
iCore.shared.functions.enumeratePeds
iCore.shared.functions.enumerateVehicles
iCore.shared.functions.enumeratePickups
iCore.shared.functions.loadModel
-- input is model name string, not hash
iCore.shared.functions.loadModel('mp_m_freemode_01')
iCore.shared.functions.deleteEntity
iCore.shared.functions.deleteEntity(1235)
iCore.shared.functions.pedSilent
iCore.shared.functions.pedSilent(1235)
iCore.shared.functions.playAnim
iCore.shared.functions.playAnim({ped = PlayerPedId(), dict = 'anim_casino_b@amb@casino@games@shared@player@', anim = 'sit_enter_left_side', flag = 49, duration = 3000, speed = 1.0, speedMultiplier = 1.0, playbackRate = 1.0})
iCore.shared.functions.playAnim({anim = 'WORLD_HUMAN_BINOCULARS'})
iCore.ui.send
local data = {}
data['ui] = 'notify'
data['type'] = 'info' -- success, danger, warning, info, dark, secondary
data['sender'] = 'no one or everyone' -- don't set will be System for default
data['message'] = 'can use <strong>html</strong>'
data['duration'] = 10000 -- default is 5000
iCore.ui.send(data)
iCore.ui.send({ui = 'countdown', message = 'Bet for play or fold', duration = 15000})
iCore.ui.copy
local coords = GetEntityCoords(PlayrePedId())
iCore.ui.copy(coords.x .. ' ' .. coords.y .. ' ' .. coords.z)
iCore.vehicle.spawn
local data = {}
data['vehicleId'] = 123 -- unique vehicle id, like same with vehicle id in database
data['metadata'] = {x = 0.0, y = 0.0, z = 0.0, heading = 100.0}
data['customs'] = {model = 'sultan', plate = 'LS999999'} -- and many customs can be unput, the customs auto fire to iCore.vehicle.customs()
iCore.vehicle.customs
iCore.vehicle.customs(entityId, {model = 'sultan', plate = 'LS999999'})
maxSpeed
health
engine
petrol
plate
plateIndex
dirtLevel
colorPrimary, colorSecondary
colorPearlescent, colorWheel
colorInterior
colorDashboard
windowTint
neonEnabled
extras
neonColor
modSmokeEnabled
tyreSmokeColor
modSpoilers
modFrontBumper
modRearBumper
modSideSkirt
modExhaust
modFrame
modGrille
modHood
modFender
modRightFender
modRoof
modEngine
modBrakes
modTransmission
modHorns
modSuspension
modArmor
modNitrous
modTurbo
modSubwoofer
modHydraulics
modXenon
xenonColor
modFrontWheels
modBackWheels
modPlateHolder
modVanityPlate
modTrimA
modOrnaments
modDashboard
modDial
modDoorSpeaker
modSeats
modSteeringWheel
modShifterLeavers
modAPlate
modSpeakers
modTrunk
modHydrolic
modEngineBlock
modAirFilter
modStruts
modArchCover
modAerials
modTrimB
modTank
modWindows
modDoorR
modLivery
modLightbar
iCore.vehicle.isFront
iCore.vehicle.isFront(entityId)
Last updated