RedEM-RP / redem_roleplay

RedEM Roleplay Framework
https://discord.gg/nbmTmZR
Other
61 stars 51 forks source link

more a question than a issue #20

Closed FlockersDesign closed 4 years ago

FlockersDesign commented 4 years ago

i have 2 questions 1 were can i set players starter money 2 how to turn off the corts will be nice to make like a small info readme for this kind of stuff to make it a little easyer for new redm server devs :P

JordanPANDA commented 4 years ago
  1. on your DB structure for character "characters" then see "structure" and edit default value of gold/money/xp etc and save, then every new character will receive the amount you've put on it.

or

in your server.cfg put:

set es_startingCash 1000
set es_startingGold 10 
set es_defaultDatabase 0
set es_enableCustomData 1
set redemrp_enablepvp 1
JordanPANDA commented 4 years ago

EDIT:

  1. I think it's it but need to test: in /redem_roleplay/client/cl.main.lua line 54 to 73
function DrawCoords()
    if Config.Coords then
        local _source = source
        local ent = GetPlayerPed(_source)
        local pp = GetEntityCoords(ent)
        local hd = GetEntityHeading(ent)
        DrawTxt("x = " .. tonumber(string.format("%.2f", pp.x)) .. " y = " .. tonumber(string.format("%.2f", pp.y)) .. " z = " .. tonumber(string.format("%.2f", pp.z)) .. " | H: " .. tonumber(string.format("%.2f", hd)), 0.01, 0.0, 0.4, 0.4, true, 255, 255, 255, 150, false)
    end
end

function DrawTxt(str, x, y, w, h, enableShadow, col1, col2, col3, a, centre)
    local str = CreateVarString(10, "LITERAL_STRING", str)

    SetTextScale(w, h)
    SetTextColor(math.floor(col1), math.floor(col2), math.floor(col3), math.floor(a))
    SetTextCentre(centre)
    if enableShadow then SetTextDropshadow(1, 0, 0, 0, 255) end
    DisplayText(str, x, y)
end

hope it's this and it help :)