Skip to content

Instantly share code, notes, and snippets.

View Sasino97's full-sized avatar
💻
Working on Cops and Robbers

Sal Strazzullo Sasino97

💻
Working on Cops and Robbers
View GitHub Profile
@samyh89
samyh89 / WaypointTeleport.lua
Created September 30, 2018 10:55
[GTAV/FiveM] Waypoint Teleport
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if GetKeyJustPressed(296) and not IsController() then
Citizen.CreateThread(function()
local entity = PlayerPedId()
if IsPedInAnyVehicle(entity, false) then
entity = GetVehiclePedIsUsing(entity)
end
@IS4Code
IS4Code / entityiter.lua
Created July 14, 2017 12:47
FiveM entity iterators
--[[The MIT License (MIT)
Copyright (c) 2017 IllidanS4
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
@Birdie0
Birdie0 / ifttt-webhooks-extended-guide.md
Last active March 6, 2024 13:38
How to use Discord Webhooks

⚠️ This gist is no longer updated! For maintained, improved and even more extended guide click here.


How to use Discord Webhook

It's a JSON

First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.

@alexguirre
alexguirre / Speeches.cs
Last active April 21, 2024 19:11
GTA V Speeches List
This file has been truncated, but you can view the full file.
// Speeches List by alexguirre
// Code in C# using RAGEPluginHook
// Usage example:
// Speech.S_M_Y_SWAT_01_WHITE_FULL_01.GENERIC_CURSE_HIGH_03.PlayOn(ped, SpeechModifier.Force);
namespace Put.Your.Namespace.Here
{
using Rage;
internal struct Speech
@darkguy2008
darkguy2008 / UDPSocket.cs
Last active April 21, 2024 14:48
Simple C# UDP server/client in 56 lines
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UDP
{
public class UDPSocket
{
private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
@06b
06b / ShortGuid.cs
Created September 3, 2015 02:14
ShortGuid - A shorter and url friendly GUID class in C#
using System;
namespace CSharpVitamins
{
/// <summary>
/// Represents a globally unique identifier (GUID) with a
/// shorter string value. Sguid
/// </summary>
public struct ShortGuid
{
@thebouv
thebouv / ducks.sh
Last active May 7, 2024 08:33
ducks: linux command for the 10 largest files in current directory
du -cks * | sort -rn | head -11
# Usually set this up in my bash profile as an alias:
# alias ducks='du -cks * | sort -rn | head -11'
# Because it is fun to type ducks on the command line. :)
@peteboere
peteboere / jquery.alterclass.js
Created December 24, 2011 12:49
jQuery alterClass plugin: Remove element classes with wildcard matching. Optionally add classes.
/**
* jQuery alterClass plugin
*
* Remove element classes with wildcard matching. Optionally add classes:
* $( '#foo' ).alterClass( 'foo-* bar-*', 'foobar' )
*
* Copyright (c) 2011 Pete Boere (the-echoplex.net)
* Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php
*
*/