Coder Social home page Coder Social logo

qb-signrobbery's Introduction

qb-signrobbery

This script allows you to rob any stop sign around the map, it it's set up with bt-target. You can easily add more props within the script. You will have to make animations in dpemotes and add the item to you qb-core also make the item use an animation within qb-smallresources/client/consumables.lua and server/consumables.lua Here's an exampe of what I did in those

--client/consumables.lua-- RegisterNetEvent("consumables:client:stopsign") AddEventHandler("consumables:client:stopsign", function(itemName) TriggerEvent('animations:client:EmoteCommandStart', {"stopsign"}) end)

--server/consumables.lua-- QBCore.Functions.CreateUseableItem("stopsign", function(source, item) local Player = QBCore.Functions.GetPlayer(source) TriggerClientEvent("consumables:client:stopsign", source, item.name) end)

Here's my example of the animation ["stopsign"] = {"amb@world_human_janitor@male@base", "base", "static", "Stop Sign", AnimationOptions = { Prop = "prop_sign_road_01a", PropBone = 57005, PropPlacement = {0.10, -1.0, 0.0, -90.0, -250.0, 0.0}, EmoteLoop = true, EmoteMoving = true, }},

Here's and example for my bt-target ["StopSign"] = { models = { prop_sign_road_01a }, options = { { type = "client", event = "stopsign:client:Target", icon = "fas fa-user-secret", label = "STEAL SIGN", }, }, distance = 2.0 }, This was made by Obtaizen with the help of BerkieBb and pushkart2

qb-signrobbery's People

Contributors

obtaizen 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.