Skip to content

Shr0x-s-Workbench/ragemp-extended-player-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A quick script allowing you to execute 'client-side' player tasks from the server.

Requirements

RAGEMP Types must be installed RAGEMP TYPES
Basic typescript knowledge

Installation

Client Side
Drop tasks.client.ts anywhere within your client side code and then import tasks.client.ts at your main client-side file initializer EG:

import "./path/to/tasks.client"

Server Side
Drop task.server.ts anywhere within your server side code and then import task.server.ts to your main server side initializer EG:

import "path/to/task.server"

Server side definitions
The definitions of new player tasks are described at index.d.ts, if you're using global namespace simply extend the PlayerMp interface there, if not then describe them where your ragemp types are.

Example Usage

const player = mp.players.at(0);
player.taskReloadWeapon(true); //reload player's weapon

There's around 107 task methods you can call.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published