Tables Example


SUBMITTED BY: LordSugarV2

DATE: Aug. 24, 2021, 3:54 p.m.

UPDATED: Aug. 25, 2021, 11:20 a.m.

FORMAT: Text only

SIZE: 326 Bytes

HITS: 771

  1. Weapons = {
  2. {
  3. name = "MP-412 Rex",
  4. class = "cw_g4p_mp412_rex",
  5. price = 10,
  6. model = "models/weapons/w_pist_deagle.mdl",
  7. }, -- Copy and paste to have more
  8. }
  9. for k, v in ipairs(Weapons) do -- Loop through each of the weapons we created
  10. print(v.name) -- Print identifier
  11. end

comments powered by Disqus