-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.lua
More file actions
19 lines (17 loc) · 734 Bytes
/
server.lua
File metadata and controls
19 lines (17 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--================================--
-- Copy Fit v2 --
-- by JellyJam --
-- License: GNU GPL 3.0 --
--================================--
RegisterCommand("copy", function(source, args, rawCommand)
local target = tostring(args[1])
if GetEntityModel(GetPlayerPed(source)) == GetEntityModel(GetPlayerPed(target)) then
TriggerClientEvent("getOutfit", target, source, false)
else
TriggerClientEvent("getOutfit", target, source, true)
end
end)
RegisterNetEvent("sendToServer")
AddEventHandler("sendToServer", function(outfit, props, model, target, diffModels)
TriggerClientEvent("setPed", target, outfit, props, model, diffModels)
end)