Hey Bro Whats Up I Hope on This Script You Work Whit UseFull Any Functions , i Don't Know , i Write New Code For You
And You Can Use And Enjoy
-- Script By ErroR (@FullOffeD)
-- Create Table To Insert Ped Pos And Rot
pedPosition = {-2413.10327, -599.83673, 132.56250,60} -- {x,y,z,rotz}
defPed = createPed(1, pedPosition[1], pedPosition[2], pedPosition[3], pedPosition[4]) -- Createing Ped
addEventHandler("onClientKey",getRootElement(),function(button, press) -- Add Event To When Click
if button == "mouse1" then
local rotx,roty,rotz = getElementRotation(defPed)
setElementRotation(defPed,rotx,roty,rotz - 10) -- Set New Rotation
elseif button == "mouse2" then
local rotx,roty,rotz = getElementRotation(defPed)
setElementRotation(defPed,rotx,roty,rotz + 10) -- Set New Rotation
end -- Close If
end)
I Test It Thats Work Successfully