Functions

Client-side functions

iCore.player.getData

circle-info

Return player data for using in client-side.

local player = iCore.player.getData()
print(json.encode(player))

iCore.player.freezee

circle-info

Freezee player at current coords.

local playerId = PlayerId()
-- freeze
local player = iCore.player.freeze(playerId, true)
-- un freeze
local player = iCore.player.freeze(playerId, false)

iCore.player.spawn

circle-info

Spawn player at coords and set some data.

-- 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

circle-info

Open character creator, we can use it for clothe shop or in some case, not only signup process. In signup process, iCore do it, you don't need to care.

iCore.player.setCharacterData

circle-info

Set player character data like model, skin, clothes....

circle-info

We can set many character data as character creator do it. But remember the data is group by. You can't send data in group alone. Must full data of group. List of groups is below.

  • shapeFirstID, shapeSecondID, skinFirstID, skinSecondID, shapeMix, skinMix

  • 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

circle-info

Create blip for current player.

iCore.shared.functions.closestPlayer

circle-info

Create closest player near current player and return playerServerId.

iCore.shared.functions.enumerateObjects

circle-info

Find nearly objects.

iCore.shared.functions.enumeratePeds

circle-info

Find nearly peds.

iCore.shared.functions.enumerateVehicles

circle-info

Find nearly vehicles.

iCore.shared.functions.enumeratePickups

circle-info

Find nearly pickups

iCore.shared.functions.loadModel

circle-info

Load model for ped, entity, object creating.

iCore.shared.functions.deleteEntity

circle-info

Delete entity by entityId.

iCore.shared.functions.pedSilent

circle-info

Set ped silent, can not be damaged or ragdoll by everyone. Using it for create default ped in shop, is dealer or something like this.

iCore.shared.functions.playAnim

circle-info

Set ped play animations, can be current ped or others.

circle-info

In case we don't set the dict this function will know anim as scenario and play it.

iCore.ui.send

circle-info

Send data to iCore NUI. Many features in this function but most is the NUI javascript handle it. For example, we can send notify.

circle-info

Or we can show the countdown.

iCore.ui.copy

circle-info

Copy string data from game to clipboard. Very helpful when develop or get the coords.

iCore.vehicle.spawn

circle-info

Spawn vehicle with input data.

iCore.vehicle.customs

circle-info

Customs vehicle appearance.

circle-info

Many customs data listed below.

  • 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

circle-info

Check player is front of vehicle.

Last updated