Functions
Client-side functions
iCore.player.getData
Return player data for using in client-side.
iCore.player.freezee
Freezee player at current coords.
iCore.player.spawn
Spawn player at coords and set some data.
iCore.player.openCharacterCreator
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
Set player character data like model, skin, clothes....
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
Create blip for current player.
iCore.shared.functions.closestPlayer
Create closest player near current player and return playerServerId.
iCore.shared.functions.enumerateObjects
Find nearly objects.
iCore.shared.functions.enumeratePeds
Find nearly peds.
iCore.shared.functions.enumerateVehicles
Find nearly vehicles.
iCore.shared.functions.enumeratePickups
Find nearly pickups
iCore.shared.functions.loadModel
Load model for ped, entity, object creating.
iCore.shared.functions.deleteEntity
Delete entity by entityId.
iCore.shared.functions.pedSilent
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
Set ped play animations, can be current ped or others.
In case we don't set the dict this function will know anim as scenario and play it.
iCore.ui.send
Send data to iCore NUI. Many features in this function but most is the NUI javascript handle it. For example, we can send notify.
Or we can show the countdown.
iCore.ui.copy
Copy string data from game to clipboard. Very helpful when develop or get the coords.
iCore.vehicle.spawn
Spawn vehicle with input data.
iCore.vehicle.customs
Customs vehicle appearance.
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
Check player is front of vehicle.
Last updated