Jump to content

Problem with faction machines


Recommended Posts

Hello friends, I want to announce the cars in this script, but it is set to words

Hello friends, I want to announce the cars in this script, but it is set to words

This is also from my script
 

function FactionVehEnter ( player, seat, jacked ) 
    if seat == 0 then
        local vehid = getElementID ( source )
        local faction = tonumber(getElementData(accSys:getPlayerAcc(player), "pMember"))
        if vehid == "598" or vehid == "PD2" or vehid == "PD3" or vehid == "PD4" or vehid == "PD5" 
        or vehid == "PD6" or vehid == "PD7" or vehid == "PD8" or vehid == "PD9" or vehid == "PD10"
        or vehid == "PD11" or vehid == "PD12" or vehid == "PD13" or vehid == "PD14" or vehid == "PD15"
        or vehid == "PD16" or vehid == "PD17" or vehid == "PD18" or vehid == "PD19" or vehid == "PD20"
        or vehid == "PD21" or vehid == "PD22" or vehid == "PD23" or vehid == "PD24" or vehid == "PD25"
        or vehid == "PD26" or vehid == "PD27" or vehid == "PD28" or vehid == "PD29" or vehid == "PD30"
        or vehid == "PD31" or vehid == "PD32" or vehid == "PD33" or vehid == "PD34" or vehid == "PD35"
        or vehid == "PD36" or vehid == "PD37" or vehid == "PD38" or vehid == "PD39" or vehid == "PD40"
        or vehid == "PD41" or vehid == "PD42" or vehid == "PD43" or vehid == "PD44" or vehid == "PD45"
        or vehid == "PD46" or vehid == "PD47" or vehid == "PD48" or vehid == "PD49" or vehid == "PD50"
        or vehid == "PD51" or vehid == "PD52" or vehid == "PD53" or vehid == "PD54" or vehid == "PD55"
        or vehid == "PD56" or vehid == "PD57" or vehid == "PD58" or vehid == "PD59"
        or vehid == "FBI1" or vehid == "FBI2" or vehid == "FBI3"
        or vehid == "FBI4" or vehid == "FBI5" 
        or vehid == "FBI6" or vehid == "FBI7" or vehid == "FBI8" or vehid == "FBI9" or vehid == "FBI10"
        or vehid == "FBI11" or vehid == "FBI12" or vehid == "FBI13" or vehid == "FBI14" or vehid == "FBI15"
        or vehid == "FBI16" or vehid == "FBI17" or vehid == "FBI18" or vehid == "FBI19" or vehid == "FBI20"
        or vehid == "FBI21" or vehid == "FBI22" or vehid == "FBI23" or vehid == "FBI24" or vehid == "FBI25"
        or vehid == "FBI26" or vehid == "FBI27" or vehid == "FBI28" or vehid == "FBI29"
        or vehid == "NG1" or vehid == "NG2" or vehid == "NG3" or vehid == "NG4" or vehid == "NG5" 
        or vehid == "NG6" or vehid == "NG7" or vehid == "NG8" or vehid == "NG9" or vehid == "NG10"
        or vehid == "NG11" or vehid == "NG12" or vehid == "NG13" or vehid == "NG14" or vehid == "NG15"
        or vehid == "NG16" or vehid == "NG17" or vehid == "NG18" or vehid == "NG19" or vehid == "NG20"
        or vehid == "NG21" or vehid == "NG22" then -- Department
            if faction == 0 or faction > 3 then
                cancelEvent()
                outputChatBox ( "#ff0000Shoma Nemitavanid Savar In Khodro Shavid!", player, 230,0,0 ,true)
            end

 

addEventHandler ( "onVehicleStartEnter", getRootElement(), FactionVehEnter ) 

Edited by CoReX_IR
Link to post

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