Jump to content

[HELP]Why Don't Work ?


Black2

Recommended Posts

Hello,why this don't work ?

I want put Infernus with 50000000 extra health more don't work

Thx for you time.

function test (  ) 
    local id = getElementModel ( theVehicle ) 
    id == 411 then  
    exports [ "extra_health" ]:setElementExtraHealth(id, 50000000) 
    end 
addEventHandler("onResourceStart",getRootElement(),test) 

The Export Script by castillo14

https://community.multitheftauto.com/index.php?p=resources&s=details&id=5195

Link to comment
  
function test (  ) 
    for i,v in pairs(getElementsByType("vehicle")) do 
        id = getElementModel ( v ) 
        if id == 411 then 
           exports [ "extra_health" ]:setElementExtraHealth(id, 50000000) 
        end 
    end 
addEventHandler("onResourceStart",getRootElement(),test) 
  

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...