Advertisement
Isigar

rcore_clothes - simple example

Jan 23rd, 2021
1,649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.31 KB | None | 0 0
  1.  
  2. {
  3.         position = vector3(-1164.99,-1586.59,4.38), --Position of blip
  4.         label = 'Vespuci - Masky', --Mask at vespuci beach
  5.         sprite = 362, --Blip sprite
  6.         color = 60,--Blip color
  7.         society = 'society_goverment', --Sociaty that will gain money from this shop, or remove it if you dont want to use it
  8.         sections = {
  9.             glasses = {--Section is one 3D openable text
  10.                 pos = vector3(-1164.99,-1586.59,4.38), --Position of it
  11.                 label = 'πŸ™ˆ', --Display label
  12.                 help = 'Zmackni ~INPUT_CONTEXT~ pro otevreni nabidky s maskami', --Help text
  13.                 components = { --Every section has components
  14.                     {
  15.                         label = 'Maska', --Component label
  16.                         name = 'mask_1', --Component name are using from skinchanger names mask_1, mask_2 etc
  17.                         from = -1, --From
  18.                         to = 160, --To (automaticly setup so value doesnt matter)
  19.                         current = -1, --Start position (setup by current player clothes)
  20.                         reset = {
  21.                             'mask_2' --If player will change mask_1 - reset mask_2 value
  22.                         },
  23.                         price = 50, --Price for mask:_1
  24.                         blacklist = {
  25.                             26,27, --Blacklist for only this shop, you can also use global blacklist, whitelist
  26.                         }
  27.                     },
  28.                     {
  29.                         label = 'Barva masky', --Mask 2 label
  30.                         name = 'mask_2', --mask_2
  31.                         from = 0,
  32.                         to = 20,
  33.                         current = 0,
  34.                         price = 10, --Price for this element
  35.                     },
  36.                 },
  37.                 cam = {
  38.                     offset = { --Camera offset
  39.                         x = 0.0,
  40.                         y = 1.0,
  41.                         z = 0.7
  42.                     },
  43.                     pointOffset = { --Offset of point
  44.                         x = 0,
  45.                         y = 0,
  46.                         z = 0.8
  47.                     },
  48.                     taskHeading = 100.66 --Heading, where player will look
  49.                 }
  50.             },
  51.         }
  52.     },
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement