-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.lua
401 lines (399 loc) · 18.2 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
Config = {}
Config.ModelName = `weapon_flaregun`
Config.UseParticlesForSelfCast = true -- Use a particle effect to show a selfCast happened
Config.Spells = {
{
name = "BoomBoom!", -- based on Expulso
description = "Expulso -> Spawns Explosions",
action = function(hit, coords, entity, remote)
AddExplosion(coords.x, coords.y, coords.z, 9, 100.0, true, false, 0)
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable spell :)
Cooldown = 5000, -- 5 seconds - set to 1 to disable cooldown
AgainstOthers = false, -- set to true if another player is required to execute,
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Spawnus My Anus!", -- based upon Erecto - Erects tents or other structures
description = "Erecto -> Spawns Objects",
action = function(hit, coords, entity, remote)
local playerPed = PlayerPedId()
local x = GetEntityForwardX(playerPed)
local y = GetEntityForwardY(playerPed)
local Coords = GetEntityCoords(playerPed)
if not hit then coords = vector3(Coords.x + (x * 6.0), Coords.y + (y * 6.0), Coords.z) end
local objList = {"prop_train_ticket_02_tu","v_ind_cfbucket","v_ind_cm_ladder", "prop_mp_conc_barrier_01", "prop_bskball_01","v_ind_cm_tyre08","v_ind_meatclner", "v_ind_rc_shovel", "prop_vend_snak_01_tu", "p_ld_soc_ball_01"}
local currentObj = objList[math.random(1, #objList)]
RequestModel(currentObj) while not HasModelLoaded(currentObj) do Wait(0) end
local obj = CreateObject(joaat(currentObj), coords.x, coords.y, coords.z, true, false, false)
SetEntityHeading(obj, math.random(-180, 180))
SetEntityVelocity(obj, 0.0, 0.0, 0.2)
SetEntityAsNoLongerNeeded(obj)
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 5000, -- 5 seconds - set to 1 to disable cooldown
AgainstOthers = false, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Transformers Assemble!", -- based upon Vera Verto - transfiguration spell to turn animals into water goblets.
description = "Vera Verto -> Turns Entities into Dildos",
action = function(hit, coords, entity, remote)
if not hit then return end
if not entity or not DoesEntityExist(entity) then return end
NetworkRequestControlOfEntity(entity)
while not NetworkHasControlOfEntity(entity) do
Wait(0)
end
SetEntityAsMissionEntity(entity, true, true)
local entity_coords = GetEntityCoords(entity) or coords
local currentObj = "amplys_dildo"
DeleteEntity(entity)
RequestModel(currentObj) while not HasModelLoaded(currentObj) do Wait(0) end
local obj = CreateObject(joaat(currentObj), entity_coords.x, entity_coords.y, entity_coords.z, true, false, false)
SetEntityHeading(obj, math.random(-180, 180))
ActivatePhysics(obj)
SetEntityAsNoLongerNeeded(obj)
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 1000, -- 5 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "WingGuard la LeviAsshole!", -- based upon wingardium leviosa
description = "wingardium leviosa -> Levitate Objects",
action = function(hit, coords, entity, remote)
local offset = #(GetEntityCoords(PlayerPedId()) - GetEntityCoords(entity))
if not hit then return end
if not entity or not DoesEntityExist(entity) then return end
while IsPlayerFreeAiming(PlayerId()) do
SetEntityAlpha(entity, 200, false)
local world, normal = GetWorldCoordFromScreenCoord(0.5, 0.5)
if IsControlPressed(0, 14) then
offset -= 1
elseif IsControlPressed(0, 15) then
offset += 1
end
if offset < 0 then
offset = -offset
end
local pos = world + normal * offset
if GetEntityType(entity) == 1 and IsPedAPlayer(entity) then
local index = NetworkGetPlayerIndexFromPed(entity)
local id = GetPlayerServerId(index)
TriggerServerEvent("wand:PlayerLevitate", id, pos)
end
SetEntityCoordsNoOffset(entity, pos.x, pos.y, pos.z)
Wait(0)
if not entity or not DoesEntityExist(entity) then break end
end
ResetEntityAlpha(entity)
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 5000, -- 5 seconds - set to 1 to disable cooldown
AgainstOthers = false, -- DO NOT ENABLE FOR THIS ONE, THIS USES SEPERATE NETWORKING
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Pushy!", -- based upon Repelo Muggletum (Repels Muggles)
description = "Repelo Muggletum -> Repels Muggles",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
local x = GetEntityForwardX(PlayerPedId())
local y = GetEntityForwardY(PlayerPedId())
local curr = GetEntityVelocity(entity)
SetEntityVelocity(entity, x * 500.0, y * 500.0, curr.z)
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 2000, -- 2 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Assession!", -- based upon Alarte Ascendare/Ascendio
description = "Ascendio -> Makes Entities Fly",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
local curr = GetEntityVelocity(entity)
SetEntityVelocity(entity, curr.x, curr.y, 50.0)
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 2000, -- 2 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Handyman Sam!", -- based upon Reparo
description = "Reparo -> Fixes/Revives Entities",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
if GetEntityType(entity) == 1 then
ResurrectPed(entity)
SetEntityCoords(entity, coords.x, coords.x, coords.z + 0.5, true, false, false, false)
SetEntityHealth(entity, GetEntityMaxHealth(entity))
elseif GetEntityType(entity) == 2 then
SetVehicleUndriveable(entity, false)
SetVehicleFixed(entity)
SetVehicleEngineOn(entity, true, false, false)
SetVehicleDirtLevel(entity, 0.0)
SetVehicleOnGroundProperly(entity)
end
if entity == PlayerPedId() then
ResurrectPed(entity)
local coords = GetEntityCoords(entity)
NetworkResurrectLocalPlayer(coords.x, coords.x, coords.z + 0.5, 0.0, false, false)
SetEntityHealth(entity, GetEntityMaxHealth(entity))
end
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 1000, -- 1 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Touch Down!", -- based on Deprimo/Descendo
description = "Descendo -> Brings Entity to the earth",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
local curr = GetEntityVelocity(entity)
SetEntityVelocity(entity, curr.x, curr.y, -250.0)
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 1000, -- 1 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Slow Poke!", -- based upon Arresto Momentum
description = "Arresto Momentum -> Slow Down entities",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
local curr = GetEntityVelocity(entity)
SetEntityVelocity(entity, curr.x / 2, -curr.y / 2, curr.z / 2)
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 2500, -- 2.5 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Slurp Slurp Juice!", -- based upon Arresto Momentum
description = "Ferula -> Heal Self",
action = function(hit, coords, entity, remote)
local ped = PlayerPedId()
SetEntityHealth(ped, GetEntityMaxHealth(ped))
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 2500, -- 2.5 seconds - set to 1 to disable cooldown
AgainstOthers = false, -- set to true if another player is required to execute
selfCast = true, -- set to true if spell is to be used on self.
},
{
name = "Snow Balling!", -- based upon (Bewitched Snowballs)
description = "Bewitched Snowballs -> Launch Snowballs",
action = function(hit, coords, entity, remote)
if not hit then return end
RequestWeaponAsset("weapon_snowball", 31, 0)
while not HasWeaponAssetLoaded("weapon_snowball") do Wait(0) end
for i = 1, 15 do
if not IsPlayerFreeAiming(PlayerId()) then
return
end
local a = GetPedBoneCoords(PlayerPedId(), GetEntityBoneIndexByName(PlayerPedId(), "SKEL_L_Hand "), 0.0,0.0,0.0)
ShootSingleBulletBetweenCoords(a.x, a.y, a.z, coords.x, coords.y, coords.z , 5.0, false, "weapon_snowball", PlayerPedId(), true, false, 1.0)
Wait(50)
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 500, -- 0.5 seconds - set to 1 to disable cooldown
AgainstOthers = false, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Ice Ice, Baby!", -- based on Petrificus Totalus
description = "Petrificus Totalus -> Feeze Entites",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
local curr = IsEntityPositionFrozen(entity)
if IsEntityAPed(entity) then ClearPedTasks(entity) SetBlockingOfNonTemporaryEvents(entity, not curr) end
FreezeEntityPosition(entity, not curr)
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 1000, -- 1 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
},
{
name = "Just Dance!", -- based on Tarantallegra
description = "Tarantallegra -> Forces Ped to Dance",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
if GetEntityType(entity) == 1 then
ClearPedTasks(entity)
RequestAnimDict("anim@amb@nightclub@lazlow@hi_railing@") while not HasAnimDictLoaded("anim@amb@nightclub@lazlow@hi_railing@") do Wait(0) end
TaskPlayAnim(entity, "anim@amb@nightclub@lazlow@hi_railing@", "ambclub_13_mi_hi_sexualgriding_laz", 5.0, 5.0, -1, 49, -1, false, false , false)
SetBlockingOfNonTemporaryEvents(entity, true)
RequestModel("ba_prop_battle_glowstick_01") while not HasModelLoaded("ba_prop_battle_glowstick_01") do Wait(0) end
local prop1 = CreateObject(`ba_prop_battle_glowstick_01`, coords.x + 3.0, coords.y, coords.z, true, false, false)
AttachEntityToEntity(prop1, entity, GetPedBoneIndex(entity, 28422), 0.0700, 0.1400, 0.0, -80.0, 20.0, 0.0, true, true,
false, true, 1, true)
local prop2 = CreateObject(`ba_prop_battle_glowstick_01`, coords.x - 3.0, coords.y, coords.z, true, false, false)
AttachEntityToEntity(prop2, entity, GetPedBoneIndex(entity, 60309), 0.0700, 0.0900, 0.0, -120.0, -20.0, 0.0, true, true,
false, true, 1, true)
SetEntityAsNoLongerNeeded(prop1)
SetEntityAsNoLongerNeeded(prop2)
SetModelAsNoLongerNeeded("ba_prop_battle_glowstick_01")
RemoveAnimDict("anim@amb@nightclub@lazlow@hi_railing@")
end
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 1400, -- 1.5 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Flappy Bird!", -- based on Avis/Oppugno
description = "Avis/Oppugno -> Shoots Birds From Wand",
action = function(hit)
RequestModel("a_c_cormorant") while not HasModelLoaded("a_c_cormorant") do Wait(0) end
local Coords = GetEntityCoords(PlayerPedId())
for i = 1, 30 do
local x = GetEntityForwardX(PlayerPedId())
local y = GetEntityForwardY(PlayerPedId())
local bird = CreatePed(1, `a_c_cormorant`, Coords.x + (x * math.random(2, 5)), Coords.y + (y* math.random(2, 5)), Coords.z + 0.2, GetEntityHeading(PlayerPedId()), true, false)
Wait(40)
SetEntityVelocity(bird, x * math.random(50, 60), y * math.random(50, 60), math.random(5, 10))
SetEntityAsNoLongerNeeded(bird)
Wait(5)
if not IsPlayerFreeAiming(PlayerId()) then
break
end
end
SetModelAsNoLongerNeeded("a_c_cormorant")
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 1, --10000 -- 10 seconds - set to 1 to disable cooldown
AgainstOthers = false, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Abra Kadabra!", -- based upon Avada Kedavra
description = "Avada Kedavra -> Insta-Kill any Ped",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
if GetEntityType(entity) == 1 then
SetEntityHealth(entity, 0)
end
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 1, -- 60000 -- 1 minute - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "ExeliArmPits!", -- Based upon Expelliarmus
description = "Expelliarmus -> Unarms Peds",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
if GetEntityType(entity) == 1 then
SetCurrentPedWeapon(entity, "weapon_unarmed", true)
end
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 2500, -- 2.5 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "No Pain, No Gain!", -- Based upon Crucio
description = "Crucio -> Torture Peds",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
if GetEntityType(entity) == 1 then
ApplyDamageToPed(entity, GetEntityHealth(entity) * 0.99, false)
local curr = GetEntityVelocity(entity)
SetEntityVelocity(entity, curr.x, curr.y, 50.0)
SetPedToRagdoll(entity, 1000, 1000, 0, false, false, false)
end
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 5000, -- 5 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Epstein!", -- based upon Episkey
description = "Episkey -> Heals Minor Injuries",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
if GetEntityType(entity) == 1 then
if GetEntityHealth(entity) > GetEntityMaxHealth(entity) / 2 then
SetEntityHealth(entity, GetEntityMaxHealth(entity))
end
end
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 2 * 60000, -- 2 minutes - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Reverse, Reverse!",
description = "Reverses an Entities Velocity",
action = function(hit, coords, entity, remote)
if not hit then return end
if entity and DoesEntityExist(entity) then
local curr = GetEntityVelocity(entity)
SetEntityVelocity(entity, -curr.x * 60.0, -curr.y * 60.0, curr.z)
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 5000, -- 5 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
{
name = "Shape Shifter!",
description = "Changes Another Players Model!",
action = function(hit, coords, entity, remote)
if not hit then return end
if not remote then return end
local modelList = {"mp_f_stripperlite", "mp_m_bogdangoon","u_m_y_mani","u_m_y_justin","u_m_y_staggrm_01", "u_m_y_pogo_01","u_m_y_rsranger_01", "a_c_crow","u_m_y_imporage", "a_c_cow", "a_m_y_hipster_02", "a_m_m_tranvest_01", "a_f_m_beach_01", "mp_m_niko_01"}
local model = joaat(modelList[math.random(1, #modelList)])
if IsModelInCdimage(model) and IsModelValid(model) then
RequestModel(model)
while not HasModelLoaded(model) do
Wait(0)
end
SetPlayerModel(PlayerId(), model)
SetModelAsNoLongerNeeded(model)
end
end,
CanUse = true, -- used for cooldowns, you can also set to false to perm disable :)
Cooldown = 5000, -- 5 seconds - set to 1 to disable cooldown
AgainstOthers = true, -- set to true if another player is required to execute
selfCast = false, -- set to true if spell is to be used on self.
},
}