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:

  1. 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
        }
    }

  2. 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
        }
    }

  3. 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
        }
    }

  4. Or if you dont want use these shops you can set Config.Shop = nil ๐Ÿ‘

  5. Enjoy your new shop! ๐ŸŽ‰

Make your own unique design

You can make your own unique design, just follow these steps:

  1. Go to in your script: path_to_your_script/baspel_scratchcard/client/ui/img

  2. There, copy card.png and make backup

  3. You can edit whole .png file in your graphics application (Photoshop, Gimp etc...)

  4. But there is one thing which is necessary. You have to preserve the scratch things and their location, other you can easily redesign

  5. Replace the old image by the new one

  6. Enjoy your new design! ๐ŸŽ‰

Change title of scratch card

You want to translate the title "LUCKY SCRATCH" ? Ofc you can, follow these steps:

  1. Navigate into the script: path_to_your_script/baspel_scratchcard

  2. Click on translate.lua

  3. Here you can find SCRATCH_TITLE

  4. Fell free to translate it

  5. Enjoy your new translate into your preferred language! ๐ŸŽ‰

Last updated