Git Product home page Git Product logo

gk_apartments's Introduction

Teleport to Apartments

A quick project for FiveM to teleport to apartments floor.

This script draw a marker on the floor outside of the building and then inside building for each floor.

There is only 3 apartments in this script for only 1 building for exemple You have to setup other apartments.

INSTALLATION

  • Copy gk_appartements in your ressources folder.
  • Add gk_appartements to your autostart ressources in citmp-server.yml file.
  • You can edit appartements.lua file to add many positions to apartments following this format :
appartements = {
	{ 
		ext = {name = "Milton Drive", x = -775.17, y = 312.01, z = 84.658, h = 183.14},
		appts = {
			{name = "Floor 1", x = -774.67, y = 331.566, z = 158.981, h = 351.82},
			{name = "Floor 2", x = -774.168, y = 331.165, z = 206.611, h = 351.82},
			{name = "Floor 3", x = -785.304, y = 323.667, z = 210.987, h = 268.62}
		}
	}
}
  • name : Names will appear on the bottom right of the screen after teleport.

  • x, y, z : Positions for teleporter markers.

  • h : Heading direction of your player.

  • ext : Outstide position for marker

  • appts : Floors Marker position. One line by floor.

If there is more than one floor, a menu will show to chosse which floor you want to teleport to, and if only one floor, you'll be teleported directly to appartment.

You Don't Need to Edit Menu. It will automatically take names from 'name' fields.

Outside1 Outside2 Inside

gk_apartments's People

Contributors

geeknessfr avatar

Watchers

James Cloos 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.