Tutorials
Help for Config.Shop settings
You can add as many shops you want! ๐ You can use model, position or ped, how to do that? It is easy, just follow these steps:
If you want use model:
{ modelOrPosOrPed = 'v_ret_247_lotterysign', -- model (like v_ret_247_lotterysign or v_ret_247_lottery) or position !!vec3 only!! or ped settings // if you want use target system, you can add target on model here, you can use position too, for no target it will be only position itemSettings = { item = 'scratch_card', -- item which will be given to player count = 1, -- count of how many items will be given to player price = 60, -- price for buyable item } }
Settings for position usage:
{ modelOrPosOrPed = vec3(0, 0, 0), -- model (like v_ret_247_lotterysign or v_ret_247_lottery) or position !!vec3 only!! or ped settings // if you want use target system, you can add target on model here, you can use position too, for no target it will be only position itemSettings = { item = 'scratch_card', -- item which will be given to player count = 1, -- count of how many items will be given to player price = 60, -- price for buyable item } }
Final usage is ped:
{ modelOrPosOrPed = { model = 'model_of_ped', position = {x = 0, y = 0, z = 0, h = 0} }, -- model (like v_ret_247_lotterysign or v_ret_247_lottery) or position !!vec3 only!! or ped settings // if you want use target system, you can add target on model here, you can use position too, for no target it will be only position itemSettings = { item = 'scratch_card', -- item which will be given to player count = 1, -- count of how many items will be given to player price = 60, -- price for buyable item } }
Or if you dont want use these shops you can set Config.Shop = nil ๐
Enjoy your new shop! ๐
Make your own unique design
You can make your own unique design, just follow these steps:
Go to in your script: path_to_your_script/baspel_scratchcard/client/ui/img
There, copy card.png and make backup
You can edit whole .png file in your graphics application (Photoshop, Gimp etc...)
But there is one thing which is necessary. You have to preserve the scratch things and their location, other you can easily redesign
Replace the old image by the new one
Enjoy your new design! ๐
Change title of scratch card
You want to translate the title "LUCKY SCRATCH" ? Ofc you can, follow these steps:
Navigate into the script: path_to_your_script/baspel_scratchcard
Click on translate.lua
Here you can find SCRATCH_TITLE
Fell free to translate it
Enjoy your new translate into your preferred language! ๐
Last updated