Military Guy Posted April 15, 2020 Share Posted April 15, 2020 (edited) How to make a wanted level if player kill player or NPC? (Как сделать, что бы давался розыск за убийство бота и игрока?) Edited April 15, 2020 by Patrick english at first Link to comment
Hoffmann Posted April 15, 2020 Share Posted April 15, 2020 (edited) addEventHandler("onPedWasted", pedElement, function(_, killer) setPlayerWantedLevel(killer, 3) end) addEventHandler("onPlayerWasted", getRootElement(), function(_, killer) setPlayerWantedLevel(killer, 3) end) Read more about onPedWasted and onPlayerWasted events here https://wiki.multitheftauto.com/wiki/OnPedWasted and https://wiki.multitheftauto.com/wiki/OnPlayerWasted Edited April 15, 2020 by Hoffmann Link to comment
Infinity-War Posted April 15, 2020 Share Posted April 15, 2020 (edited) @Hoffmann The source of this event is the ped that died or got killed. Edited April 15, 2020 by Infinity-War Link to comment
Hoffmann Posted April 15, 2020 Share Posted April 15, 2020 12 minutes ago, Infinity-War said: @Hoffmann The source of this event is the ped that died or got killed. My fault. Edited 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