Fix snippet formatting

This commit is contained in:
Jim Shield
2023-02-14 15:08:18 +00:00
committed by GitHub
parent c25cb643bc
commit 7996100dad

View File

@@ -22,9 +22,7 @@ And small example snippet for this imports the item and the emote, then syncs it
["bsfries"] = {"mp_player_inteat@burger", "mp_player_int_eat_burger_fp", "Fries", AnimationOptions = { Prop = "prop_food_bs_chips", PropBone = 18905, PropPlacement = {0.09, -0.06, 0.05, 300.0, 150.0}, EmoteMoving = true, EmoteLoop = true, }}, ["bsfries"] = {"mp_player_inteat@burger", "mp_player_int_eat_burger_fp", "Fries", AnimationOptions = { Prop = "prop_food_bs_chips", PropBone = 18905, PropPlacement = {0.09, -0.06, 0.05, 300.0, 150.0}, EmoteMoving = true, EmoteLoop = true, }},
} }
if Config.Debug then print("^5Debug^7: ^2Starting ^6Emote ^2Import^7..") end
for k, v in pairs(emoteTable) do exports["jim-consumables"]:importEmote(k, v) end for k, v in pairs(emoteTable) do exports["jim-consumables"]:importEmote(k, v) end
if Config.Debug then print("^5Debug^7: ^2Starting ^6Item ^2Import^7..") end
for k, v in pairs(foodTable) do exports["jim-consumables"]:importConsumable(k, v) end for k, v in pairs(foodTable) do exports["jim-consumables"]:importConsumable(k, v) end
``` ```
This will grab the `shotfries` item info and add it to the `Config.Consumables` while the servers running and the same with the built-in emote system This will grab the `shotfries` item info and add it to the `Config.Consumables` while the servers running and the same with the built-in emote system