GithubHelp home page GithubHelp logo

temouchenty / doughnamechanger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from viktormelin/doughnamechanger

0.0 0.0 0.0 34 KB

License: GNU General Public License v3.0

Lua 77.65% JavaScript 6.31% HTML 8.51% CSS 7.53%

doughnamechanger's Introduction

Discord

๐Ÿ“Œ About this Script

doughNamechanger-banner|512x256

Simple Ui-based script for players to change name (firstname + lastname)

๐Ÿ“’ Requirements

  • ESX (mysql-async) or QBCore (oxmysql)
  • Do not change the name of the resource if you do not know how to edit the rest of the files

๐Ÿ“‹ Installation

  1. Drag and Drop doughNamechanger into your resources folder
  2. Add ensure doughNamechanger to your server.cfg

Change from QBCore to ESX

  1. Script is by default set to use QBCore, if you wish to change it to use ESX edit shared/config.lua and set Config.ESX = true
  2. Go into fxmanifest.lua and comment out the @qb-core/import.lua and uncomment the 3 files in server_scripts {}
  1. Uncomment the lines in fxmanifest.lua that are marked
  2. Change Config.UseBTtarget = true
  3. Success! Should work now!

๐Ÿ“ Important Files

config.lua

Easily add more locations and change cost

Config = {}

Config.ESX = false
Config.UseBTtarget = false

Config.Cost = 500
Config.Account = 'bank'
Config.EnableLogs = true

Config.EnableBlip = true
Config.BlipSprite = 480
Config.BlipColour = 17
Config.BlipScale = 0.65
Config.BlipLabel = 'Passport Agency'

Config.Locations = {
    vector3(299.6404, -579.6099, 43.2608)
}



-- If using BT-Target uncomment code below

-- Config.LocationNPC = {
--     x = 229.72,
--     y = -428.14,
--     z = 47.08,
--     heading = 341.33,
--     npcname = "cs_fbisuit_01",
--     npchash = 0x585C0B52,
-- }

fxmanifest.lua

shared_scripts {
    '@qb-core/import.lua', -- ENABLE / DISABLE IF YOU USE QB-CORE
    'shared/config.lua'
}

server_scripts {
	-- '@async/async.lua',
	-- '@mysql-async/lib/MySQL.lua',
    -- '@es_extended/locale.lua',
    'server/main.lua',
}

doughnamechanger's People

Contributors

viktormelin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.