Giter VIP home page Giter VIP logo

vrp-basic-mission's Introduction

vRP-basic-mission

Adds delivery and repair missions.

Give sometimes a mission to players with the repair/delivery permissions. Good as side task for utility jobs relying on services (drugs delivery for EMS,etc).

Setup

Missions are assigned using the permissions set in cfg/missions.lua by a rate of one minute.

Paycheck

Triggered at a specific rate (interval).

Repair

Triggered sometimes, following the chance option. A chance of 3 will be triggered every 3 minutes (average). For this reason, you can have multiple repair permissions for one player.

Delivery

Continuous missions triggered every minute, if not already on a mission. For this reason, only one delivery permission should be used. What needs to be delivered is randomly generated using the configuration.

vrp-basic-mission's People

Contributors

davireisvieira avatar imagicthecat avatar j0n4s13 avatar snaicrys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vrp-basic-mission's Issues

Install the vrp mission?

Hi Imagic , i'm sure that is a stupid question but i don't undertand how to install the vrp mission on my vrp server!

Player don't receive the mission

I created a mission for a specific group and the item transformer with the same permission works for this groups but for some reason they don't receive the mission

that's my setting for the mission:

cfg.factionmi = {
  ["mission.factionmi"] = {
	title = "Entregar mercadorias aos clientes",
    positions = common_factionmi_positions,
    items = {
    ["weed"] = {1,5,250},
	["cocaine"] = {0,4,400},
    ["lsd"] = {0,2,700},
    ["AK47"] = {1,5,350},
    ["M4A1"] = {1,5,350}
    }
  }
}

local common_factionpcg_positions = {
  {919.21667480469,-291.04168701172,65.729217529297},
  {1286.7436523438,-1604.2690429688,54.824893951416},
  {988.65637207031,-2421.5590820313,29.829107284546}
}

Translation on gun/ammo

Hello, we can't have translation for gun and ammo if i put this code :
["mission.delivery.gun"] = { chance = 30, positions = gunshop_positions, items = { ["wbody|WEAPON_PISTOL"] = {1,5,100}, ["wammo|WEAPON_PISTOL"] = {1,60,10}, ["wbody|WEAPON_PUMPSHOTGUN"] = {1,3,1500}, ["wammo|WEAPON_PUMPSHOTGUN"] = {1,40,25}, ["wbody|WEAPON_SMG"] = {1,2,250}, ["wammo|WEAPON_SMG"] = {1,30,30} } } }
In game i will have only english words in missions chart

Missions not loading

Hey man, Great work on everything but the missions file refuses to load throwing errors i even tried it with your files with out any of my modifications

Bug vrpex marked

the yellow mark disappears from the missions and does not return to function only the circle appears on the map

Error

2017-06-15 23:48:06.2062|INFO|CitizenMP.Server|[profile] => proxy_vRP:getUsersByPermission ["mission.repair.satellite_dishes"]
2017-06-15 23:48:06.2094|INFO|CitizenMP.Server|[profile] => proxy_vRP:getUserSource [1]
2017-06-15 23:48:06.2121|INFO|CitizenMP.Server|[profile] => proxy_vRP:hasMission [65537]
2017-06-15 23:48:06.2454|ERROR|CitizenMP.Server|Error executing event handler for event vRP:proxy in resource vrp: Exception has been thrown by the target of an invocation.
2017-06-15 23:48:06.2507|ERROR|CitizenMP.Server| at [U] System.Reflection.MonoMethod.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object[] parameters,CultureInfo culture)
2017-06-15 23:48:06.2507|ERROR|CitizenMP.Server| at [U] System.Reflection.MethodBase.Invoke(Object obj,Object[] parameters)
2017-06-15 23:48:06.2507|ERROR|CitizenMP.Server| at [U] System.Delegate.DynamicInvokeImpl(Object[] args)
2017-06-15 23:48:06.2507|ERROR|CitizenMP.Server| at [U] System.MulticastDelegate.DynamicInvokeImpl(Object[] args)
2017-06-15 23:48:06.2507|ERROR|CitizenMP.Server| at [U] System.Delegate.DynamicInvoke(Object[] args)
2017-06-15 23:48:06.2507|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.TriggerEvent(String eventName,String argsSerialized,Int32 source)
2017-06-15 23:48:06.2507|ERROR|CitizenMP.Server|Inner exception: type 'userdata' is not supported by JSON.
2017-06-15 23:48:06.2519|INFO|CitizenMP.Server|[profile] <= proxy_vRP:hasMission [65537] 0.0440000000000005s
2017-06-15 23:48:06.2519|INFO|CitizenMP.Server|[profile] <= proxy_vRP:getUserSource [1] 0.0440000000000005s
2017-06-15 23:48:06.2519|INFO|CitizenMP.Server|[profile] <= proxy_vRP:getUsersByPermission ["mission.repair.satellite_dishes"] 0.048s
2017-06-15 23:48:06.2533|INFO|CitizenMP.Server|[profile] => proxy_vRP:getUsersByPermission ["mission.repair.wind_turbines"]
2017-06-15 23:48:06.2542|INFO|CitizenMP.Server|[profile] <= proxy_vRP:getUsersByPermission ["mission.repair.wind_turbines"] 0s
2017-06-15 23:48:06.2544|INFO|CitizenMP.Server|Frame time warning: server frame took 50 msec.

Mission Menu

image

the missions menu is buggy, with a black square! What can I do?

Money Issue

I have all of the basic missions working but when you get paid it shows 5000 in the bottom left but bank account does not increase.

Edit... it fixed itself ;)

Error!

Creating script environments for vrp_basic_mission
Error loading script server.lua in resource vrp_basic_mission: @vrp_basic_mission/server.lua:5: attempt to call a nil value (global 'async')
stack traceback:
@vrp_basic_mission/server.lua:5: in main chunk
Failed to load script server.lua.

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.