Jump to content

createWeapon problem


Recommended Posts

You will have to run the serverside function. use triggerClientEvent;


function (thePlayer, command) 
    local x,y,z = getElementPosition(thePlayer) 
    x = x + 5 
    triggerClientEvent(thePlayer, "onCreateWeapon", getRootElement(), x, y, z) 
addEvent("onCreateWeapon", true) 
addEventHandler("onCreateWeapon", getRootElement(),  
function (x, y, z) 
    local weapon = createWeapon("minigun", x, y, z) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...