I am 100% sure that there are hundreds of servers owners out there who would love this as you are sick and tired of dealing with people who just can’t stay away from that enter key when creating a character and get stuck with a default ped, now you do not need to worry about them default Danny’s roaming your streets as you can use this to prevent that, it is pretty simple to use and self explanatory.
How to use?
Open your skinchanger resource and paste the snippet below at the bottom of the client file
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if Character['tshirt_1'] == 0 and Character['torso_1'] == 0 then
DisableAllControlActions(0)
EnableControlAction(0, 174, true)
EnableControlAction(0, 175, true)
EnableControlAction(0, 173, true)
EnableControlAction(0, 27, true)
DannyDetect()
elseif Character['shoes_1'] == 0 and Character['shoes_2'] == 0 then
DisableAllControlActions(0)
EnableControlAction(0, 174, true)
EnableControlAction(0, 175, true)
EnableControlAction(0, 173, true)
EnableControlAction(0, 27, true)
DannyDetect()
end
end
end)
function DannyDetect()
SetTextColour(0, 0, 0, 255)
SetTextFont(4)
SetTextScale(0.8, 0.8)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextEntry("STRING")
AddTextComponentString("~r~You can\'t roll around as a default johnny, change your skin!")
DrawText(0.105, 0.100)
end
This will disable all controls but the arrow keys and display the message in the screenshot above.