Kenix Posted January 3, 2011 Share Posted January 3, 2011 please help with the script I want to make that command created a bot. client function onResourceStart(thisResource,thePlayer) local team = getTeamFromName("funners") local ai= "following" local x,y,z = getElementPosition(thePlayer) local rot = getPedRotation(thePlayer) x = x + ((math.cos(math.rad(rot + 90))) * 2.5) y = y + ((math.sin(math.rad(rot + 90))) * 2.5) call (getResourceFromName("slothbot"), "spawnBot", x,y,z,rot, 0, 287, 0, 0, team, 38, ai) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart ) addCommandHandler ( "createbot", onResourceStart ) Link to comment
Castillo Posted January 3, 2011 Share Posted January 3, 2011 slothbots are only server side. Link to comment
Kenix Posted January 3, 2011 Author Share Posted January 3, 2011 slothbots are only server side. thanks a lot Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now