Giter VIP home page Giter VIP logo

redemrp_respawn's Introduction

redemrp_respawn

Respawning and Spawn Place Selection System for RedEM:RP Framework

1. Installation

  • Be sure you have RedEM:RP Installed if not -> RedEM:RP
  • Clone redemrp_respawn into [redemrp] folder
  • add ensure redemrp_respawn after ensure redem_roleplay

2. Usage

  • Any config you can set in config.lua file

Trigger this only server event when you want revive player

TriggerEvent("redemrp_respawn:client:Revived", PlayerServerId)

3. Credits

https://github.com/amakuu/ https://github.com/youngsinatra99/

redemrp_respawn's People

Contributors

abdulkadiraktas avatar actuallykane avatar amakuu avatar cryptogenics avatar kanersps avatar ktos93 avatar meta-hub avatar youngsinatra99 avatar zer0cool0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

redemrp_respawn's Issues

Add this to disable autorespawn of sessionmanager

Hi, I suggest deactivating the autorespawn that conflicts with sessionmanager.

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0) -- DO NOT REMOVE
		local pl = Citizen.InvokeNative(0x217E9DC48139933D)
		while Citizen.InvokeNative(0x2E9C3FCB6798F397, pl) do
			Citizen.Wait(0) -- DO NOT REMOVE
			local timer = GetGameTimer()+Config.RespawnTime
			while timer >= GetGameTimer() do
				if respawned == false then
					Citizen.Wait(0) -- DO NOT REMOVE
					Citizen.InvokeNative(0xFA08722A5EA82DA7, Config.Timecycle)
					Citizen.InvokeNative(0xFDB74C9CC54C3F37, Config.TimecycleStrenght)
					Citizen.InvokeNative(0x405224591DF02025, 0.50, 0.475, 1.0, 0.22, 1, 1, 1, 100, true, true)
					DrawTxt(Config.LocaleDead, 0.50, 0.40, 1.0, 1.0, true, 161, 3, 0, 255, true)
					DrawTxt(Config.LocaleTimer .. " " .. tonumber(string.format("%.0f", (((GetGameTimer() - timer) * -1)/1000))), 0.50, 0.50, 0.7, 0.7, true, 255, 255, 255, 255, true) 
					--print ("PLAYER IS DEAD")
					DisplayHud(false)
					DisplayRadar(false)
					exports.spawnmanager:setAutoSpawn(false) -- disable respawn
				else
					respawned = false
					break
				end
			end
			respawn() -- Calling the respawn function here
		end
	end
end)

exports.spawnmanager:setAutoSpawn(false)

Respawn undresses you

When I put cloths on, then if I die or /respawn it does not remember I had clothes on and I end up either naked or in the default outfit.

Async needed or not

In the instructions async is not required but for redemrp_respawn its still in txmanifest

'@async/async.lua',

RESPAWN

hi i am testing new update but no one creates ped like the old version?
spawn with ped original game

how to add new spawn area?

Sorry for the maybe "noob" question but, How can i add a new spawn area at a location i want in the start of the game ?

I know it's on the HTML that you can edit the start map spawn etc but i can't manage to make my location work and have red circle on it.

Revive not working

Any suggestions on getting the revives or the tpm's to work?
I have been fighting this for two days and even though I have the ace perms set that came with the recipe it still says "[script:redemrp_respa] Player ID: [1] - Tried to use/revive without permissions"
Im seriously pulling my hair out trying to fix this.

No such export

@redemrp_respawn/server/main.lua:1: No such export RedEM in resource redem_roleplay

pls help how to solve that

respawn problem

Hi, I don't know if it's a mistake but when you die you reappear before the counter reaches 0.

coords

doesnt save the coords of the player when he leaves the server and rejoins
he goes back to where everybody going when they creating a character

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.