Jump to content

[REL] UCD RPG


Noki

Recommended Posts

Posted

That's a terrible security measure and I strongly advise that you don't do that.

I recommend setting up ACL permissions for each individual resource that requires them.

Kinda off-topic but a strong disclaimer for anyone using these resources. It's not my fault, or the fault of these resources, if your server is insecure.

  • 1 year later...
Posted
5 minutes ago, xRaM said:

hello there, when it will be updated :D ? 

Probably when I feel nostalgic about MTA. Give it a year or two maybe.

  • Haha 1
Posted (edited)

Got a bit of an issue, when I try register there is no error just a shaded out 'register' button? Any idea as to why?

Edited by UsBorne
Posted
3 hours ago, UsBorne said:

Got a bit of an issue, when I try register there is no error just a shaded out 'register' button? Any idea as to why?

You will most likely need to check your client's debug log. Check `C:\Program Files (x86)\MTA San Andreas 1.5\MTA\logs\clientscript.log` and scroll to the bottom.

The registration button relies on the colour of the labels (which check if what you entered is valid). So make sure you fill it out properly and that the appropriate labels are green, not red or plain.

2 hours ago, UsBorne said:

Maybe you have the ACL file it would be very handy, or help me out if possible setting up permissions on the ACL for it to work?

In the server console, just use `aclrequest` and allow. I am not providing an ACL file as you should be setting up permissions properly. You can view what rights a resource needs using `aclrequest` and adjust it accordingly. It is not my responsibility to configure your ACL as it is different for you than it might be for me.

 

Posted
On 7/22/2018 at 03:40, Noki said:

Probably when I feel nostalgic about MTA. Give it a year or two maybe.

op dont feel nostalgic about mta why :D? 

 

Posted
On 7/29/2018 at 13:04, xRaM said:

op dont feel nostalgic about mta why :D? 

I have a job and I study at university full time. I barely have time to work on side projects, let alone think about gaming or even MTA.

UCD is open source and if you want to make a contribution, go ahead.

  • 3 years later...
Posted

I know it's not proper forum etiquette to bump old posts...

But I want to announce that I am actively working on this again. I will be posting another thread when I setup a server, so people can play and see the server in action. I'll provide more detail and what not.

In the meantime, could a mod please lock this thread?

  • 4 years later...
Posted

Hello Noki, thank you for releasing this as open-source for everyone to use
I wanted to ask you, is this all the server exports i could use or there are more than those?


 ACCOUNTS / LOGIN

Resource: UCDaccounts
File: UCDaccounts/server.lua

isPlayerLoggedIn(player) → checks login state

getPlayerAccount(player) → returns account object

getPlayerAccountID(player) → DB account ID

getPlayerAccountName(player) → username

getAccountData(player, key) → get stored account value

setAccountData(player, key, value) → set + sync account data

savePlayerAccount(player) → force save to DB

 DATABASE (MYSQL CORE)

Resource: UCDsql
File: UCDsql/server.lua

getConnection() → shared MySQL connection (always use this)

query(sql, ...) → SELECT queries

exec(sql, ...) → INSERT / UPDATE / DELETE

poll(handle, timeout) → fetch query results

escapeString(value) → SQL injection safety

 PERMISSIONS / CHECKING

Resource: UCDchecking
File: UCDchecking/server.lua

canPlayerDoAction(player, action) → permission gate

isPlayerAdmin(player) → admin boolean

getPlayerAdminLevel(player) → admin level number

 UTILITIES

Resource: UCDutil
File: UCDutil/server.lua

tocomma(number) → number formatting (1,000,000)

mathround(number, decimals) → rounding

isElementValid(element) → safe element check

tableCopy(table) → deep table copy

 UI / DX SYSTEM

Resource: UCDdx
File: UCDdx/server.lua

dx:new(player, ...) → create DX text

dx:add(player, id, data) → add DX element

dx:del(player, id) → remove DX element

dx:clear(player) → clear all DX for player

LOGGING

Resource: UCDlogging
File: UCDlogging/server.lua

adminLog(text, level) → admin actions log

logEvent(category, message) → generic server logs

 JOBS

Resource: UCDjobs
File: UCDjobs/server.lua

getPlayerJob(player) → current job

setPlayerJob(player, job) → set job

GROUPS / TEAMS

Resource: UCDgroups
File: UCDgroups/server.lua

getPlayerGroup(player) → player group

setPlayerGroup(player, group) → set group

 STATS / PLAYTIME

Resource: UCDstats
File: UCDstats/server.lua

getPlayerPlaytime(player) → total playtime

addPlayerPlaytime(player, amount) → increment playtime

 NOTIFICATIONS

Resource: UCDnotification
File: UCDnotification/server.lua

notify(player, message, type) → player notification

notifyGlobal(message) → server-wide notify

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...